auth_router.go 562 字节
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/v1/auth/login", &controllers.AuthController{}, "post:Login")
	beego.Router("/v1/auth/logout", &controllers.AuthController{}, "post:Logout")
	beego.Router("/v1/auth/profile", &controllers.AuthController{}, "post:Profile")
	beego.Router("/v1/auth/captcha-init", &controllers.AuthController{}, "post:CaptchaInit")
	beego.Router("/v1/auth/changePassword", &controllers.AuthController{}, "post:ChangePassword")
}