add prefix api_ to packages
This commit is contained in:
@@ -58,8 +58,8 @@ func (r *Router) MustRoute() chi.Router {
|
||||
}
|
||||
|
||||
r.r.Route("/api", func(api chi.Router) {
|
||||
api.Route("/block", block.MustRoute(r.cfg))
|
||||
api.Route("/auth", auth.MustRoute(r.cfg))
|
||||
api.Route("/block", api_block.MustRoute(r.cfg))
|
||||
api.Route("/auth", api_auth.MustRoute(r.cfg))
|
||||
})
|
||||
|
||||
r.r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user