18 lines
387 B
Go
18 lines
387 B
Go
|
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())
|
||
|
{
|
||
|
dashboard.GET("/request/list", api.Dashboard().List) // 请求日志
|
||
|
}
|
||
|
}
|