2019-09-02 18:58:51 +08:00
|
|
|
package router
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"main/controller/api"
|
|
|
|
)
|
|
|
|
|
|
|
|
func InitUserRouter(Router *gin.Engine) {
|
|
|
|
UserRouter := Router.Group("user")
|
|
|
|
{
|
|
|
|
UserRouter.POST("regist", api.Regist)
|
2019-09-04 00:22:14 +08:00
|
|
|
UserRouter.POST("login", api.Login)
|
|
|
|
UserRouter.POST("changePassWord", api.ChangePassWord)
|
2019-09-02 18:58:51 +08:00
|
|
|
}
|
|
|
|
}
|