From e9b7f8ca17047b7c317a6a1eff68eb2217db7f29 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 18 Dec 2025 19:56:56 +0200 Subject: [PATCH] rename --- api/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {