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 f25ba0b072a12e2f895ed2759f582671bfc4e563 [formerlye7217859ae
]]] Former-commit-id: 374fc1053dacf9ef377222767147a4920cdd4f59 [formerly af799f218dd515ecf8a15e0a5a2c13ab1e8ca392] Former-commit-id: 1ee1699aa4e0e6ffce8ac1dad8653a8add5a3b65 Former-commit-id:cf3d7ad9e8
This commit is contained in:
parent
3cd7f84e1b
commit
bee4eebf85
1
main.go
1
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)
|
||||
|
Loading…
Reference in New Issue
Block a user