Working on OAuth

This commit is contained in:
2021-06-30 19:12:29 +02:00
parent bc21d0d508
commit b263de65fa
10 changed files with 4893 additions and 4745 deletions

View File

@@ -75,11 +75,8 @@ Route.group(() => {
Route.get('/me', 'AuthController.user').middleware('auth')
Route.post('/token', 'AuthController.createInfiniteToken')
Route.post('/web/login', 'AuthController.loginWeb')
Route.post('/web/logout', 'AuthController.logoutWeb')
Route.post('/api/login', 'AuthController.loginApi')
Route.post('/api/logout', 'AuthController.logoutApi')
Route.post('/login', 'AuthController.login')
Route.post('/logout', 'AuthController.logout')
Route.get('/twitter/callback', 'AuthController.twitter')
Route.get('/github/callback', 'AuthController.github')