🎨新增客户端状态字段

This commit is contained in:
coward
2024-03-11 14:53:28 +08:00
parent 16799ee5d8
commit 71d6090f94
10 changed files with 1002 additions and 0 deletions

14
route/client.go Normal file
View File

@@ -0,0 +1,14 @@
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
"wireguard-dashboard/middleware"
)
func ClientApi(r *gin.Engine) {
apiGroup := r.Group("client", middleware.Authorization())
{
apiGroup.GET("list", api.Client().List) // 客户端列表
}
}