wireguard-dashboard/route/server.go

15 lines
288 B
Go
Raw Normal View History

2024-03-07 17:07:41 +08:00
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
"wireguard-dashboard/middleware"
)
func ServerApi(r *gin.Engine) {
apiGroup := r.Group("server", middleware.Authorization())
{
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息
}
}