feat: mount /api in API handler
This commit is contained in:
@@ -256,4 +256,9 @@ func (h *APIHandler) GetMetrics(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func (h *APIHandler) MountRoutes(r chi.Router, config RouteModuleConfig) {
|
||||
public := r
|
||||
if config.GeneralRateLimit != nil {
|
||||
public = config.GeneralRateLimit(r)
|
||||
}
|
||||
public.Get("/", h.GetAPIInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user