Allow /upload/ for PUT requests without filename
This commit is contained in:
parent
120909ce46
commit
0d365409d0
|
@ -138,6 +138,7 @@ func setup() *web.Mux {
|
||||||
mux.Post("/upload", uploadPostHandler)
|
mux.Post("/upload", uploadPostHandler)
|
||||||
mux.Post("/upload/", uploadPostHandler)
|
mux.Post("/upload/", uploadPostHandler)
|
||||||
mux.Put("/upload", uploadPutHandler)
|
mux.Put("/upload", uploadPutHandler)
|
||||||
|
mux.Put("/upload/", uploadPutHandler)
|
||||||
mux.Put("/upload/:name", uploadPutHandler)
|
mux.Put("/upload/:name", uploadPutHandler)
|
||||||
|
|
||||||
mux.Delete("/:name", deleteHandler)
|
mux.Delete("/:name", deleteHandler)
|
||||||
|
|
Loading…
Reference in New Issue