mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: change language cause unexpected redirect #189
This commit is contained in:
parent
4ec19c9cda
commit
ba4aeb85ca
1 changed files with 3 additions and 3 deletions
|
@ -33,6 +33,9 @@ func InitRouter() *gin.Engine {
|
|||
root.POST("/login", api.Login)
|
||||
root.DELETE("/logout", api.Logout)
|
||||
|
||||
// translation
|
||||
root.GET("translation/:code", api.GetTranslation)
|
||||
|
||||
w := root.Group("/", authRequired(), proxyWs())
|
||||
{
|
||||
// Analytic
|
||||
|
@ -144,9 +147,6 @@ func InitRouter() *gin.Engine {
|
|||
|
||||
// node
|
||||
g.GET("node", api.GetCurrentNode)
|
||||
|
||||
// translation
|
||||
g.GET("translation/:code", api.GetTranslation)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue