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:
Diffstat (limited to 'web/controller')
-rw-r--r--web/controller/index.go3
1 files changed, 2 insertions, 1 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)
}