Uhm, no, hash should be passed in POST body.
This commit is contained in:
parent
5218e427d5
commit
20702fa97e
@ -91,7 +91,7 @@ func main() {
|
|||||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||||
srv.GET("/", hand.Index)
|
srv.GET("/", hand.Index)
|
||||||
srv.POST("/", hand.Upload)
|
srv.POST("/", hand.Upload)
|
||||||
srv.POST("/:hash/delete", hand.Delete)
|
srv.POST("/delete", hand.Delete)
|
||||||
srv.GET("/f/:hash/:name", hand.Download)
|
srv.GET("/f/:hash/:name", hand.Download)
|
||||||
srv.DELETE("/:hash", hand.Delete)
|
srv.DELETE("/:hash", hand.Delete)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user