diff --git a/start/routes/auth.ts b/start/routes/auth.ts index ffe1e32..f7dd813 100644 --- a/start/routes/auth.ts +++ b/start/routes/auth.ts @@ -1,7 +1,7 @@ import Route from "@ioc:Adonis/Core/Route"; Route.group(() => { - Route.get('/me', 'AuthController.user') + Route.get('/me', 'AuthController.user').middleware('auth:web,api') Route.post('/token', 'AuthController.createInfiniteToken') Route.group(() => {