switched to token based authentication

This commit is contained in:
Sockenklaus
2021-10-22 05:29:50 +02:00
parent 293d192691
commit f8bf1a745f
5 changed files with 79 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ Route.group(() => {
.prefix('api/v1')
Route.group(() => {
Route.get('logout', 'AuthController.logout').as('logout')
Route.post('logout', 'AuthController.logout').as('logout')
Route.resource('employees', 'EmployeesController').apiOnly()
})