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:47:14 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-09-24 12:47:14 +0300
commita0c07241c04d2488b675bdcc54b3a845580db029 (patch)
tree87f4588658f37aa57eb11d3d56b71cd8da12ade6 /web/controller
parentadf3242602668a57a6113a681b1331181b412cda (diff)
minor changes
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)
}