From bee4eebf853ee1801f68957ab2a99c281da0f920 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 11 Feb 2016 10:23:45 -0500 Subject: [PATCH] Added HEAD request for uptime monitors Former-commit-id: 9807e4271633e02470dc1a2cf9386262fb8247d7 [formerly 4d2905a638138dafae91eec5a1d35206d007ecc7] [formerly 685ed32ece50d9465722ac69be0755afadad760c [formerly f25ba0b072a12e2f895ed2759f582671bfc4e563 [formerly e7217859aee38c5166a0eb06b65c758dca7605c0]]] Former-commit-id: 374fc1053dacf9ef377222767147a4920cdd4f59 [formerly af799f218dd515ecf8a15e0a5a2c13ab1e8ca392] Former-commit-id: 1ee1699aa4e0e6ffce8ac1dad8653a8add5a3b65 Former-commit-id: cf3d7ad9e8a59b3a898f27fe488fa103e72e33c8 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 7fa52bc..be17857 100644 --- a/main.go +++ b/main.go @@ -76,6 +76,7 @@ Options:`) r := gin.Default() r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*")) r.GET("/", newNote) + r.HEAD("/", func(c *gin.Context) { c.Status(200) }) r.GET("/:title", editNote) r.GET("/:title/*option", everythingElse) r.DELETE("/listitem", deleteListItem)