rename
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user