From 1427428c147ffc5fc146c93533b249ab4b50d786 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 30 Sep 2021 23:55:55 +0930 Subject: [PATCH] Fix method URL and remove debugging --- main.go | 1 - web/index.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 7c0f2f7..89268c9 100644 --- a/main.go +++ b/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"` diff --git a/web/index.html b/web/index.html index 660eb63..fed12e3 100644 --- a/web/index.html +++ b/web/index.html @@ -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