Merge branch 'dev' into add-api

This commit is contained in:
DullJZ
2025-11-06 18:37:27 +08:00
committed by GitHub
6 changed files with 99 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ type HealthResponse struct {
}
// RegisterRoutes 注册管理API路由
// 注意: router 参数应该是已经带有 /api 前缀的子路由器
func (h *AdminHandler) RegisterRoutes(router *mux.Router) {
// 注册路由,同时支持 OPTIONS 方法用于 CORS 预检
router.HandleFunc("/buckets", h.ListBuckets).Methods(http.MethodGet, http.MethodOptions)