Working and fixing form

This commit is contained in:
2021-06-21 19:24:47 +02:00
parent 4cdc2cdc1a
commit d738c59a5d
7 changed files with 790 additions and 5689 deletions

View File

@@ -78,7 +78,17 @@ Route.group(() => {
Route.post('/api/login', 'AuthController.loginApi')
Route.post('/api/logout', 'AuthController.logoutApi')
Route.get('/twitter', 'AuthController.twitter')
Route.get('/github', 'AuthController.github')
Route.get('/google', 'AuthController.google')
Route.get('/twitter/callback', 'AuthController.twitter')
Route.get('/github/callback', 'AuthController.github')
Route.get('/google/callback', 'AuthController.google')
Route.get('/twitter/redirect', async ({ ally}) => {
return ally.use('twitter').redirect()
})
Route.get('/github/redirect', async ({ ally}) => {
return ally.use('github').redirect()
})
Route.get('/google/redirect', async ({ ally}) => {
return ally.use('google').redirect()
})
}).prefix('auth')