update internal path
This commit is contained in:
parent
67630a0578
commit
ef96cadb2e
|
@ -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)
|
||||
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue