update internal path

This commit is contained in:
Matthieu Lamalle 2020-07-16 14:04:51 +02:00
parent 67630a0578
commit ef96cadb2e
2 changed files with 3 additions and 3 deletions

View File

@ -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)
})

BIN
jwtserver

Binary file not shown.