feat: mount /api in API handler
This commit is contained in:
1 parent
ab4da45de2
commit
408b0000c8
1 file changed
+5
@@ -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