Fix method URL and remove debugging
This commit is contained in:
parent
fc0d6a32c3
commit
1427428c14
1
main.go
1
main.go
@ -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"`
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user