minor changes

This commit is contained in:
mhsanaei
2025-09-24 11:47:14 +02:00
parent adf3242602
commit a0c07241c0
4 changed files with 8 additions and 5 deletions

View File

@@ -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)
}

View File

@@ -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