diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-24 12:47:14 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-24 12:47:14 +0300 |
| commit | a0c07241c04d2488b675bdcc54b3a845580db029 (patch) | |
| tree | 87f4588658f37aa57eb11d3d56b71cd8da12ade6 /web/controller | |
| parent | adf3242602668a57a6113a681b1331181b412cda (diff) | |
minor changes
Diffstat (limited to 'web/controller')
| -rw-r--r-- | web/controller/index.go | 3 |
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) } |
