From 89b22acc40963ced4884696303dd914f4b2e01c6 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Thu, 12 Aug 2021 10:26:13 +0200 Subject: [PATCH] Fix auth error --- start/routes/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start/routes/api.ts b/start/routes/api.ts index 0b1695d..6815286 100644 --- a/start/routes/api.ts +++ b/start/routes/api.ts @@ -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))