diff --git a/Makefile b/Makefile index 10c58d0..0285cf7 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,7 @@ clean: rm -f go.* rm -f go.wit.com rm -f gowebd + go-mod-clean --purge # makes a .deb package debian: diff --git a/patchsets.go b/doPatchsets.go similarity index 100% rename from patchsets.go rename to doPatchsets.go diff --git a/http.go b/http.go index f098827..bc2641e 100644 --- a/http.go +++ b/http.go @@ -82,6 +82,10 @@ func okHandler(w http.ResponseWriter, r *http.Request) { savePatchset(w, msg) return } + if route == "/GetPatchsets" { + doSendPatchsets(w) + return + } if route == "/patchsetlist" { listPatchsets(w)