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
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/controller/index.go3
-rw-r--r--web/web.go6
2 files changed, 5 insertions, 4 deletions
diff --git a/web/controller/index.go b/web/controller/index.go
index 89de710b..5f9e1c2c 100644
--- a/web/controller/index.go
+++ b/web/controller/index.go
@@ -39,8 +39,9 @@ func NewIndexController(g *gin.RouterGroup) *IndexController {
// initRouter sets up the routes for index, login, logout, and two-factor authentication.
func (a *IndexController) initRouter(g *gin.RouterGroup) {
g.GET("/", a.index)
- g.POST("/login", a.login)
g.GET("/logout", a.logout)
+
+ g.POST("/login", a.login)
g.POST("/getTwoFactorEnable", a.getTwoFactorEnable)
}
diff --git a/web/web.go b/web/web.go
index a590e50b..f2bc59fd 100644
--- a/web/web.go
+++ b/web/web.go
@@ -95,9 +95,9 @@ type Server struct {
httpServer *http.Server
listener net.Listener
- index *controller.IndexController
- panel *controller.XUIController
- api *controller.APIController
+ index *controller.IndexController
+ panel *controller.XUIController
+ api *controller.APIController
xrayService service.XrayService
settingService service.SettingService