wireguard-dashboard/route/dashboard.go

18 lines
387 B
Go
Raw Normal View History

2024-06-03 17:09:45 +08:00
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
"wireguard-dashboard/middleware"
)
// DashboardApi
// @description: 控制台相关API
// @param r
func DashboardApi(r *gin.RouterGroup) {
apiGroup := r.Group("dashboard", middleware.Authorization(), middleware.SystemLogRequest())
{
apiGroup.GET("list", api.Dashboard().List) // 操作日志
}
}