system.go 356 B

123456789101112131415
  1. package routers
  2. import (
  3. "bigdata_archives/app/controller"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func SystemRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.GET("/setting", controller.GetSystemSetting)
  9. group.POST("/setting", controller.CreateSystem)
  10. group.PUT("/setting", controller.UpdateSystem)
  11. group.DELETE("/setting", controller.DeleteSystem)
  12. }