feat: mount /api in API handler

This commit is contained in:
2025-11-11 04:20:03 +01:00
parent ab4da45de2
commit 408b0000c8

View File

@@ -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)
}