Fix method URL and remove debugging

This commit is contained in:
Justin Hawkins 2021-09-30 23:55:55 +09:30
parent fc0d6a32c3
commit 1427428c14
2 changed files with 1 additions and 2 deletions

View File

@ -186,7 +186,6 @@ func fetchInfoOneRESTHandler(w http.ResponseWriter, r *http.Request) {
}
if r.Method == "POST" {
log.Printf("Updating download")
type updateRequest struct {
Action string `json:"action"`

View File

@ -65,7 +65,7 @@
});
},
fetch_data() {
fetch('/rest/fetch/info')
fetch('/rest/fetch')
.then(response => response.json())
.then(info => {
// will be null if no downloads yet