...
|
...
|
@@ -2,6 +2,7 @@ package routers |
|
|
|
|
|
import (
|
|
|
"github.com/astaxie/beego"
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/ability/controllers/v1"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -21,7 +22,22 @@ func init() { |
|
|
nsV1.Router("/auth/login",auth,"post:Login")
|
|
|
nsV1.Router("/auth/accessToken",auth,"post:AccessToken")
|
|
|
nsV1.Router("/auth/refreshToken",auth,"post:RefreshToken")
|
|
|
nsV1.Router("/auth/smsCode",auth,"post:SmsCode")
|
|
|
}
|
|
|
|
|
|
/*image controller*/
|
|
|
{
|
|
|
upload :=&v1.UploadController{}
|
|
|
nsV1.Router("/upload/image",upload,"post:Image")
|
|
|
}
|
|
|
|
|
|
{
|
|
|
version :=&v1.VersionController{}
|
|
|
nsV1.Router("/version/getLatestVersionInfo",version,"post:GetLatestVersionInfo")
|
|
|
}
|
|
|
|
|
|
beego.SetStaticPath("/file/ab",beego.AppConfig.String("source_path"))
|
|
|
beego.Handler("/metrics", promhttp.Handler())
|
|
|
beego.AddNamespace(nsV1)
|
|
|
}
|
|
|
|
...
|
...
|
|