summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 3afd480..becba70 100644
--- a/main.go
+++ b/main.go
@@ -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")
}