ferry/router/dashboard/dashboard.go

21 lines
399 B
Go
Raw Normal View History

2020-07-23 00:42:46 +08:00
package dashboard
import (
2020-08-13 21:45:10 +08:00
"ferry/apis/dashboard"
"ferry/middleware"
2020-07-23 00:42:46 +08:00
jwt "ferry/pkg/jwtauth"
"github.com/gin-gonic/gin"
)
/*
@Author : lanyulei
*/
func RegisterDashboardRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
2020-08-13 21:45:10 +08:00
classify := v1.Group("/dashboard").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
{
classify.GET("", dashboard.InitData)
}
2020-07-23 00:42:46 +08:00
}