Change route path '/xui' to '/panel'

This commit is contained in:
Hamidreza Ghavami
2023-05-12 22:36:05 +04:30
parent 288374d5fa
commit b0871a6ef6
9 changed files with 35 additions and 35 deletions

View File

@@ -39,7 +39,7 @@ func (a *IndexController) initRouter(g *gin.RouterGroup) {
func (a *IndexController) index(c *gin.Context) {
if session.IsLogin(c) {
c.Redirect(http.StatusTemporaryRedirect, "xui/")
c.Redirect(http.StatusTemporaryRedirect, "panel/")
return
}
html(c, "login.html", "pages.login.title", nil)

View File

@@ -18,7 +18,7 @@ func NewXUIController(g *gin.RouterGroup) *XUIController {
}
func (a *XUIController) initRouter(g *gin.RouterGroup) {
g = g.Group("/xui")
g = g.Group("/panel")
g.Use(a.checkLogin)
g.GET("/", a.index)