Fix for login

This commit is contained in:
Aurélie Delhaie
2022-05-15 21:26:35 +02:00
parent 22ea6b0e8d
commit 246fe2fe6c
6 changed files with 57 additions and 25 deletions

View File

@@ -23,6 +23,7 @@ func Serve() {
router.Route("/api", func(rApi chi.Router) {
rApi.Route("/v1", func(r chi.Router) {
r.Post("/login", Login)
r.Post("/check/token", CheckToken)
if config.Features().AllowRegister {
r.Post("/register", Register)
}