diff --git a/internal/router/router.go b/internal/router/router.go index 112d7a8..02879c7 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -3,7 +3,7 @@ package router import ( "time" - "forge.cadoles.com/mlamalle/go-jwtserver/internal/jwtcontroller" + jwtmiddleware "forge.cadoles.com/mlamalle/go-jwtserver/middleware" "github.com/go-chi/chi" "github.com/go-chi/chi/middleware" ) @@ -20,8 +20,8 @@ func InitializeRouter() chi.Router { r.Route("/api/", func(r chi.Router) { // Middleware routes - r.Post("/user/new", jwtcontroller.CreateAccount) - r.Post("/user/login", jwtcontroller.Authenticate) + r.Post("/user/new", jwtmiddleware.CreateAccount) + r.Post("/user/login", jwtmiddleware.Authenticate) }) diff --git a/jwtserver b/jwtserver index 4e5190e..84d63ce 100755 Binary files a/jwtserver and b/jwtserver differ