Skip to content

Commit

Permalink
refactor: change sql-template api
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Nov 30, 2023
1 parent 0f2257b commit 8f8f24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion center/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ func (rt *Router) Config(r *gin.Engine) {
pages.POST("/tdengine-tables", rt.tdengineTables)
pages.POST("/tdengine-columns", rt.tdengineColumns)

pages.GET("/sql-template", rt.QuerySqlTemplate)
} else {
pages.Any("/proxy/:id/*url", rt.auth(), rt.dsProxy)
pages.POST("/query-range-batch", rt.auth(), rt.promBatchQueryRange)
Expand All @@ -186,6 +185,7 @@ func (rt *Router) Config(r *gin.Engine) {
pages.POST("/tdengine-columns", rt.auth(), rt.tdengineColumns)
}

pages.GET("/sql-template", rt.QuerySqlTemplate)
pages.POST("/auth/login", rt.jwtMock(), rt.loginPost)
pages.POST("/auth/logout", rt.jwtMock(), rt.auth(), rt.logoutPost)
pages.POST("/auth/refresh", rt.jwtMock(), rt.refreshPost)
Expand Down

0 comments on commit 8f8f24c

Please sign in to comment.