goweb/route/login.go

15 lines
294 B
Go

package route
import (
"github.com/gin-gonic/gin"
"go_api_tmpl/controller"
)
// 初始化登录相关接口路由
func initLoginRoute(r *gin.RouterGroup) {
// 获取短信验证码
r.POST("/sms", controller.GetSmsCodeController)
// 登录
r.POST("/login", controller.LoginController)
}