Skip to content

Commit

Permalink
Merge pull request #144 from filecoin-project/feat/add_status_api
Browse files Browse the repository at this point in the history
feat: add status api to detect api ready
  • Loading branch information
simlecode authored Feb 20, 2023
2 parents ddfaa1f + 9e27317 commit f33898b
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 f33898b

Please sign in to comment.