Add user route

This commit is contained in:
2021-06-10 19:37:42 +02:00
parent 7295401fea
commit 61b7f14b0f
2 changed files with 6 additions and 0 deletions

View File

@@ -24,4 +24,9 @@ export default class UsersController {
return { message: 'Vous avez été déconnecté' }
}
public async me ({auth}: HttpContextContract) {
await auth.authenticate()
return auth.user
}
}