提交 dd8e1f2d 编写于 作者: U UlricQin

add api: /api/n9e/version

上级 f63f019e
......@@ -102,6 +102,10 @@ func configRoute(r *gin.Engine, version string) {
{
pages.Any("/prometheus/*url", jwtAuth(), prometheusProxy)
pages.GET("/version", func(c *gin.Context) {
c.String(200, version)
})
pages.POST("/auth/login", loginPost)
pages.POST("/auth/logout", logoutPost)
pages.POST("/auth/refresh", refreshPost)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册