auth_router.go
367 字节
package routers
import (
"github.com/astaxie/beego"
"github.com/tiptok/godevp/pkg/port/beego/controllers"
)
func init() {
beego.Router("/v1/auth/login", &controllers.AuthController{}, "Post:Login")
beego.Router("/v1/auth/profile", &controllers.AuthController{}, "Post:Profile")
beego.Router("/v1/auth/refresh", &controllers.AuthController{}, "Post:Refresh")
}