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:
authorAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:20:46 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2023-12-04 21:20:46 +0300
commit2a8da2ba3cbfbf7ac46e5ba7ba071588f3f2d8b5 (patch)
treee1afd8fc1521abb72bc74256c4540ad1fcce8f51 /web/controller/xui.go
parenta8b7063647c055988f3768a35af59ca391928b9b (diff)
separate xray page #1286
Diffstat (limited to 'web/controller/xui.go')
-rw-r--r--web/controller/xui.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/web/controller/xui.go b/web/controller/xui.go
index 700bd52c..5b4c0a18 100644
--- a/web/controller/xui.go
+++ b/web/controller/xui.go
@@ -7,8 +7,9 @@ import (
type XUIController struct {
BaseController
- inboundController *InboundController
- settingController *SettingController
+ inboundController *InboundController
+ settingController *SettingController
+ xraySettingController *XraySettingController
}
func NewXUIController(g *gin.RouterGroup) *XUIController {
@@ -24,9 +25,11 @@ func (a *XUIController) initRouter(g *gin.RouterGroup) {
g.GET("/", a.index)
g.GET("/inbounds", a.inbounds)
g.GET("/settings", a.settings)
+ g.GET("/xray", a.xraySettings)
a.inboundController = NewInboundController(g)
a.settingController = NewSettingController(g)
+ a.xraySettingController = NewXraySettingController(g)
}
func (a *XUIController) index(c *gin.Context) {
@@ -40,3 +43,7 @@ func (a *XUIController) inbounds(c *gin.Context) {
func (a *XUIController) settings(c *gin.Context) {
html(c, "settings.html", "pages.settings.title", nil)
}
+
+func (a *XUIController) xraySettings(c *gin.Context) {
+ html(c, "xray.html", "pages.xray.title", nil)
+}