2019-09-08 11:13:43 +08:00
|
|
|
package router
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"main/controller/api"
|
|
|
|
)
|
|
|
|
|
|
|
|
func InitBaseRouter(Router *gin.Engine) {
|
2019-09-21 17:38:51 +08:00
|
|
|
BaseRouter := Router.Group("base")
|
2019-09-08 11:13:43 +08:00
|
|
|
{
|
2019-09-21 17:38:51 +08:00
|
|
|
BaseRouter.POST("regist", api.Regist)
|
|
|
|
BaseRouter.POST("login", api.Login)
|
2019-09-08 11:13:43 +08:00
|
|
|
}
|
|
|
|
}
|