diff --git a/api/router.go b/api/router.go index e759eda..a059d63 100644 --- a/api/router.go +++ b/api/router.go @@ -22,11 +22,11 @@ type Router struct { cfg *config.Config - authService *auth.AuthService + authService *auth.Service } type RouterDependencies struct { - AuthService *auth.AuthService + AuthService *auth.Service Configuration *config.Config } @@ -74,7 +74,7 @@ func (r *Router) MustRoute() chi.Router { r.r.Route("/api", func(api chi.Router) { api.Route("/block", api_block.MustRoute(r.cfg)) - api.Route("/auth", api_auth.MustRoute(r.cfg)) + api.Route("/users", api_auth.MustRoute(r.cfg, r.authService)) }) r.r.Get("/health", func(w http.ResponseWriter, r *http.Request) {