소스 검색

fix: change language cause unexpected redirect #189

Jacky 1 년 전
부모
커밋
ba4aeb85ca
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      server/router/routers.go

+ 3 - 3
server/router/routers.go

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