feat: 完善平台总后台认证与管理入口
This commit is contained in:
@@ -14,10 +14,13 @@ func Register(srvKey string, engine *gin.Engine) {
|
||||
v1Key := fmt.Sprintf("/%s/%s", srvKey, "v1")
|
||||
anonymous := engine.Group(v1Key)
|
||||
anonymous.GET("/ping/hello", platform.PingHello)
|
||||
anonymous.POST("/auth/login", platform.Login)
|
||||
|
||||
protected := engine.Group(v1Key)
|
||||
protected.Use(middleware.JwtAuth(true))
|
||||
{
|
||||
protected.GET("/auth/profile", platform.CurrentProfile)
|
||||
protected.PUT("/auth/password", platform.ChangePassword)
|
||||
protected.GET("/dashboard/overview", platform.DashboardOverview)
|
||||
gasStationGroup := protected.Group("/organization/org_gas_station")
|
||||
gasStationGroup.POST("", platform.CreateOrgGasStation)
|
||||
|
||||
Reference in New Issue
Block a user