Remove auth middleware to get files

This commit is contained in:
2021-08-19 00:01:48 +02:00
parent 5cc616ee91
commit 271b49b0af

View File

@@ -12,8 +12,9 @@ Route.group(() => {
Route.resource('/translations', 'TranslationsController').except(['edit', 'create'])
Route.resource('/files', 'FilesController').only(['index', 'store', 'destroy'])
Route.get('/files/:filename', async ({response, params}) => {
response.download(Application.makePath('storage', params.filename))
})
}).middleware('auth')
Route.get('/files/:filename', async ({response, params}) => {
response.download(Application.makePath('storage', params.filename))
})