1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Added HEAD request for uptime monitors

Former-commit-id: 9807e4271633e02470dc1a2cf9386262fb8247d7 [formerly 4d2905a638138dafae91eec5a1d35206d007ecc7] [formerly 685ed32ece50d9465722ac69be0755afadad760c [formerly e7217859ae]]
Former-commit-id: 374fc1053dacf9ef377222767147a4920cdd4f59 [formerly af799f218dd515ecf8a15e0a5a2c13ab1e8ca392]
Former-commit-id: 1ee1699aa4e0e6ffce8ac1dad8653a8add5a3b65
This commit is contained in:
Zack Scholl 2016-02-11 10:23:45 -05:00
parent 45977e42ff
commit cf3d7ad9e8

View File

@ -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)