1
0

Made registration work

This commit is contained in:
konrad
2018-06-10 11:34:59 +02:00
committed by kolaente
parent 2ca4c521aa
commit 1bee67cac7
6 changed files with 14 additions and 20 deletions

View File

@ -39,10 +39,12 @@ func RegisterRoutes(e *echo.Echo) {
// CORS_SHIT
a.OPTIONS("/login", SetCORSHeader)
a.OPTIONS("/register", SetCORSHeader)
a.OPTIONS("/users", SetCORSHeader)
a.OPTIONS("/users/:id", SetCORSHeader)
a.POST("/login", Login)
a.POST("/login", apiv1.Login)
a.POST("/register", apiv1.UserAddOrUpdate)
// ===== Routes with Authetification =====
// Authetification