2021-08-20 14:59:13 +08:00
|
|
|
package route
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
2021-08-22 00:13:00 +08:00
|
|
|
"goweb/core"
|
2021-08-20 14:59:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func InitRoute(app *gin.Engine) {
|
|
|
|
app.GET("/", func(context *gin.Context) {
|
|
|
|
core.R(context).OkWithMessage("瞅啥呢?")
|
|
|
|
})
|
|
|
|
group := app.Group("/api")
|
|
|
|
// 登录相关接口路由
|
|
|
|
initLoginRoute(group)
|
|
|
|
// 测试用的
|
|
|
|
initTestRoute(group)
|
2021-08-22 17:23:04 +08:00
|
|
|
|
|
|
|
initOAuth2Route(group)
|
2021-08-20 14:59:13 +08:00
|
|
|
}
|