wireguard-dashboard/http/router/dashboard.go

20 lines
565 B
Go
Raw Normal View History

2024-08-08 17:26:50 +08:00
package router
import (
"github.com/gin-gonic/gin"
"wireguard-ui/http/api"
"wireguard-ui/http/middleware"
)
// DashboardApi
// @description: 控制台相关接口
// @param r
func DashboardApi(r *gin.RouterGroup) {
dashboard := r.Group("dashboard", middleware.Authorization(), middleware.RequestLog())
{
2024-08-09 11:06:58 +08:00
dashboard.GET("/request/list", api.Dashboard().List) // 请求日志
dashboard.GET("/daily-poetry", api.Dashboard().DailyPoetry) // 每日诗词
dashboard.GET("/connections", api.Dashboard().ConnectionList) // 客户端列表列表
2024-08-08 17:26:50 +08:00
}
}