diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/controller/index.go | 3 | ||||
| -rw-r--r-- | web/web.go | 6 |
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) } @@ -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 |
