mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Fix auth error
This commit is contained in:
@@ -4,14 +4,13 @@ import Application from "@ioc:Adonis/Core/Application";
|
||||
Route.get('/discord', 'ProfileController.discord')
|
||||
Route.get('/me', 'ProfileController.me')
|
||||
Route.get('/stats', 'StatsController.index')
|
||||
Route.resource('/locations', 'LocationsController').only(['index', 'store'])
|
||||
|
||||
Route.group(() => {
|
||||
Route.resource('/users', 'UsersController').except(['edit', 'create'])
|
||||
|
||||
Route.resource('/translations', 'TranslationsController').except(['edit', 'create'])
|
||||
|
||||
Route.resource('/locations', 'LocationsController').only(['index', 'store'])
|
||||
|
||||
Route.resource('/files', 'FileController').only(['index', 'store', 'destroy'])
|
||||
Route.get('/files/:filename', async ({response, params}) => {
|
||||
response.download(Application.makePath('storage', params.filename))
|
||||
|
||||
Reference in New Issue
Block a user