Skip to content

Commit

Permalink
feat: add status api to detect api ready
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Feb 20, 2023
1 parent ddfaa1f commit 9e27317
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e27317

Please sign in to comment.