:recycle:重构了部分代码

This commit is contained in:
coward
2024-03-13 17:05:02 +08:00
parent 7716a15dbb
commit 7c48551989
15 changed files with 125 additions and 29 deletions

View File

@@ -6,7 +6,7 @@ import (
"wireguard-dashboard/middleware"
)
func ServerApi(r *gin.Engine) {
func ServerApi(r *gin.RouterGroup) {
apiGroup := r.Group("server", middleware.Authorization())
{
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息