feat: give access to repo
This commit is contained in:
@ -34,7 +34,7 @@ func (s *APIServer) Run() error {
|
||||
FileServer(router, "/static", staticDir)
|
||||
|
||||
router.Route("/api/v1", func(r chi.Router) {
|
||||
userHandler := user.NewUserHandler()
|
||||
userHandler := user.NewUserHandler(s.repo)
|
||||
userHandler.RegisterRoutes(router, r)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user