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

This commit is contained in:
Zack Scholl 2016-02-11 10:23:45 -05:00
parent e6e5d701e6
commit e7217859ae

View File

@ -76,6 +76,7 @@ Options:`)
r := gin.Default() r := gin.Default()
r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*")) r.LoadHTMLGlob(path.Join(RuntimeArgs.SourcePath, "templates/*"))
r.GET("/", newNote) r.GET("/", newNote)
r.HEAD("/", func(c *gin.Context) { c.Status(200) })
r.GET("/:title", editNote) r.GET("/:title", editNote)
r.GET("/:title/*option", everythingElse) r.GET("/:title/*option", everythingElse)
r.DELETE("/listitem", deleteListItem) r.DELETE("/listitem", deleteListItem)