From e7217859aee38c5166a0eb06b65c758dca7605c0 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 --- 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)