Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-09-24 12:25:35 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-09-24 12:29:55 +0300
commit3f62592e4b98c38d2164c9949ed971ed5d2b21cc (patch)
treece77d16e71ececac96b9fe9180c767c60c32db68 /web/controller/xui.go
parent02bff4db6c99bac0aefb5c4c65c986d8d5b802a9 (diff)
API improve security: returns 404 for unauthenticated API requests
Diffstat (limited to 'web/controller/xui.go')
-rw-r--r--web/controller/xui.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/web/controller/xui.go b/web/controller/xui.go
index ba415ac9..51502900 100644
--- a/web/controller/xui.go
+++ b/web/controller/xui.go
@@ -8,8 +8,6 @@ import (
type XUIController struct {
BaseController
- inboundController *InboundController
- serverController *ServerController
settingController *SettingController
xraySettingController *XraySettingController
}
@@ -31,8 +29,6 @@ func (a *XUIController) initRouter(g *gin.RouterGroup) {
g.GET("/settings", a.settings)
g.GET("/xray", a.xraySettings)
- a.inboundController = NewInboundController(g)
- a.serverController = NewServerController(g)
a.settingController = NewSettingController(g)
a.xraySettingController = NewXraySettingController(g)
}