1
0
Fork 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
1 changed files with 1 additions and 1 deletions

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)