fix(download): add POST as an allowed download method for frontend
build / Go-Build (push) Successful in 1m25s
build / Go-Build (push) Successful in 1m25s
This commit is contained in:
@@ -30,7 +30,7 @@ func PrepareHTTP() {
|
|||||||
})
|
})
|
||||||
registerAuthorizedFunc("/svg/{id}", func(w http.ResponseWriter, r *http.Request) {
|
registerAuthorizedFunc("/svg/{id}", func(w http.ResponseWriter, r *http.Request) {
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "GET":
|
case "GET", "POST":
|
||||||
routes.DownloadSVG(w, r)
|
routes.DownloadSVG(w, r)
|
||||||
return
|
return
|
||||||
case "DELETE":
|
case "DELETE":
|
||||||
|
|||||||
Reference in New Issue
Block a user