feat(help-center): align category payloads
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user