20 lines
505 B
Go
20 lines
505 B
Go
package routers
|
|
|
|
import (
|
|
"git.rosy.net.cn/jx-print/controllers"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitV1System(v1 *gin.RouterGroup) {
|
|
userw := v1.Group("/user")
|
|
userw.POST("/login", controllers.Login)
|
|
userw.GET("/refreshCode", controllers.RefreshCode)
|
|
userw.POST("/register", controllers.RegisterUser)
|
|
userw.GET("/getMenus", controllers.GetMenus)
|
|
userw.GET("/getMenuDetail", controllers.GetMenuDetail)
|
|
|
|
//config
|
|
config := v1.Group("/config")
|
|
config.GET("/getConfig", controllers.GetConfig)
|
|
}
|