index.go 431 B

12345678910111213141516
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "eta/mysteel_watch/controller/index"
  5. )
  6. func InitIndex(group *gin.RouterGroup) {
  7. //指标
  8. indexController := new(index.IndexController)
  9. group.GET("server_check", indexController.ServerCheck)
  10. group.GET("test", indexController.Test)
  11. group.POST("create", indexController.Create)
  12. group.POST("delete", indexController.Delete)
  13. group.POST("refresh", indexController.Refresh)
  14. }