You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
421 B

package router
import (
"base/app/lib/bean"
"base/app/router/middleware"
"github.com/gin-gonic/gin"
)
// @Title 配置路由
func SetRouter(router *gin.Engine) {
// 跨域
router.Use(middleware.Cors)
// 404
router.NoRoute(func(c *gin.Context) {
bean.Response.ResultFail(c, 20000, "接口不存在")
})
// 后端接口
//manageRouter(router.Group("manage"))
// app接口
//appRouter(router.Group("app"))
}