feat(help-center): align category payloads

This commit is contained in:
2026-06-06 03:56:16 +08:00
parent f3ac4a7ee3
commit c38ad40a85
10 changed files with 447 additions and 149 deletions
+3
View File
@@ -1400,9 +1400,12 @@ func registerV1Routes(g *gin.RouterGroup, h *Handlers) {
// Categories nested under portal
categories := portals.Group("/:portal_id/categories")
{
categories.GET("", h.Category.List)
categories.GET("/", h.Category.List)
categories.POST("", h.Category.Create)
categories.POST("/", h.Category.Create)
categories.GET("/:category_id", h.Category.Get)
categories.PATCH("/:category_id", h.Category.Update)
categories.PUT("/:category_id", h.Category.Update)
categories.DELETE("/:category_id", h.Category.Delete)
categories.POST("/reorder", h.Category.Reorder)