mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-01 04:17:50 +01:00
Rename controller
This commit is contained in:
@@ -11,7 +11,7 @@ Route.group(() => {
|
|||||||
|
|
||||||
Route.resource('/translations', 'TranslationsController').except(['edit', 'create'])
|
Route.resource('/translations', 'TranslationsController').except(['edit', 'create'])
|
||||||
|
|
||||||
Route.resource('/files', 'FileController').only(['index', 'store', 'destroy'])
|
Route.resource('/files', 'FilesController').only(['index', 'store', 'destroy'])
|
||||||
Route.get('/files/:filename', async ({response, params}) => {
|
Route.get('/files/:filename', async ({response, params}) => {
|
||||||
response.download(Application.makePath('storage', params.filename))
|
response.download(Application.makePath('storage', params.filename))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user