pageManage.go 438 B

123456789101112131415
  1. package routers
  2. import (
  3. "Panel_development/app/controller"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func PageManageRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.POST("/pageManage", controller.GetPageManage)
  9. group.POST("/addpageManage", controller.AddPageManage)
  10. group.PUT("/pageManage", controller.UpdatePageManage)
  11. group.DELETE("/pageManage", controller.DeletePageManage)
  12. group.GET("/pageManage", controller.GetPageManageById)
  13. }