diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-21 19:49:52 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-21 19:49:52 +0530 |
commit | 6581728a1291850b9fa6c5f3aaf072512d50f165 (patch) | |
tree | 362807cac916dc871f3eb310da014b8befa3a019 | |
parent | 8d85b0f87590b0941dfb2d8815aa2c7b7462a89f (diff) |
added ping route to check server health and login status
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,5 +43,10 @@ func main() { user.Routes(r) auth.Routes(r) + // ping server and check if logged in + r.POST("/ping", auth.Authorize(), func (ctx *gin.Context) { + ctx.Status(200) + }) + r.Run(":6969") } |