From 9e273176f847040868b93ae93466e11e261ccd99 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Mon, 20 Feb 2023 16:06:31 +0800 Subject: [PATCH] feat: add status api to detect api ready --- auth/route.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth/route.go b/auth/route.go index 23d3bb9..fcf7d9f 100644 --- a/auth/route.go +++ b/auth/route.go @@ -17,6 +17,9 @@ func InitRouter(app OAuthApp) http.Handler { router.Use(CorsMiddleWare()) router.Use(RewriteAddressInUrl()) + router.GET("/status", func(c *gin.Context) { + c.String(http.StatusOK, "OK") + }) router.GET("/version", func(c *gin.Context) { type version struct { Version string