1
0

Uhm, no, hash should be passed in POST body.

This commit is contained in:
Alexander Andreev 2022-07-01 03:43:00 +04:00
parent 5218e427d5
commit 20702fa97e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -91,7 +91,7 @@ func main() {
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
srv.GET("/", hand.Index)
srv.POST("/", hand.Upload)
srv.POST("/:hash/delete", hand.Delete)
srv.POST("/delete", hand.Delete)
srv.GET("/f/:hash/:name", hand.Download)
srv.DELETE("/:hash", hand.Delete)