feat: live module and jenkins pipeline to harbor deploy
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"kra/internal/server/handler"
|
||||
)
|
||||
|
||||
func RegisterGift(public, private *gin.RouterGroup, h *handler.Gift) {
|
||||
public.GET("/live/gifts", h.PublicList)
|
||||
private.GET("/live/admin/gifts", h.List)
|
||||
private.GET("/live/admin/gifts/:id", h.Get)
|
||||
private.POST("/live/admin/gifts", h.Create)
|
||||
private.PUT("/live/admin/gifts/:id", h.Update)
|
||||
private.DELETE("/live/admin/gifts/:id", h.Delete)
|
||||
private.PATCH("/live/admin/gifts/:id/status", h.Status)
|
||||
private.PUT("/live/admin/gifts/sort", h.Sort)
|
||||
private.GET("/live/admin/sends", h.Sends)
|
||||
private.POST("/live/rooms/:id/gifts", h.Send)
|
||||
}
|
||||
Reference in New Issue
Block a user