Update xui.go

This commit is contained in:
心隨緣動 2025-10-08 00:00:14 +08:00 committed by GitHub
parent c7a9270486
commit 118d41161e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,8 @@
package controller
import (
"x-ui/web/service"
"github.com/gin-gonic/gin"
)
@ -11,6 +13,7 @@ type XUIController struct {
serverController *ServerController
settingController *SettingController
xraySettingController *XraySettingController
serverService service.ServerService
}
func NewXUIController(g *gin.RouterGroup) *XUIController {
@ -30,7 +33,7 @@ func (a *XUIController) initRouter(g *gin.RouterGroup) {
g.GET("/navigation", a.navigation)
a.inboundController = NewInboundController(g)
a.serverController = NewServerController(g)
a.serverController = NewServerController(g, a.serverService)
a.settingController = NewSettingController(g)
a.xraySettingController = NewXraySettingController(g)
}