Fix auth error

This commit is contained in:
2021-08-12 10:26:13 +02:00
parent d62674db00
commit 89b22acc40

View File

@@ -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))