diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-12-10 17:42:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-10 17:42:52 +0300 |
| commit | e3f1d3c892a1af48f27fdc36f273a55f38d13b40 (patch) | |
| tree | b11d0c1ed3c15c8f6f891a5e6df8e021d5db8ab6 /web/controller/xui.go | |
| parent | 36cf7c0a8fda915b51e75958ce729fd9a61a5c90 (diff) | |
| parent | 9fbe80f87f950673058f0001b3704251fa8b9243 (diff) | |
huge changes
Diffstat (limited to 'web/controller/xui.go')
| -rw-r--r-- | web/controller/xui.go | 11 |
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) +} |
