Skip to content

Commit ba4aeb8

Browse files
authored
fix: change language cause unexpected redirect #189
1 parent 4ec19c9 commit ba4aeb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/router/routers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func InitRouter() *gin.Engine {
3333
root.POST("/login", api.Login)
3434
root.DELETE("/logout", api.Logout)
3535

36+
// translation
37+
root.GET("translation/:code", api.GetTranslation)
38+
3639
w := root.Group("/", authRequired(), proxyWs())
3740
{
3841
// Analytic
@@ -144,9 +147,6 @@ func InitRouter() *gin.Engine {
144147

145148
// node
146149
g.GET("node", api.GetCurrentNode)
147-
148-
// translation
149-
g.GET("translation/:code", api.GetTranslation)
150150
}
151151
}
152152

0 commit comments

Comments
 (0)