summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-08 17:13:58 -0500
committerJeff Carr <[email protected]>2025-07-08 17:19:19 -0500
commit3588440aed55e81864c1afd2d96d6b037242befd (patch)
tree332c7271795599f5b328e6122a5b9620cad37777 /http.go
parente57f48e64994dabbd5c50173044f7d95f899c663 (diff)
add /updatev0.0.7
Diffstat (limited to 'http.go')
-rw-r--r--http.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/http.go b/http.go
index c48a42c..cb7d72e 100644
--- a/http.go
+++ b/http.go
@@ -45,6 +45,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
if route == "/lookup" {
+ log.Info("doing lookup len(msg) =", len(msg))
found, err := lookupRepos(msg)
if err != nil {
return
@@ -60,6 +61,17 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ if route == "/update" {
+ log.Info("doing update len(msg) =", len(msg))
+ found, err := updateRepos(msg)
+ if err != nil {
+ return
+ }
+
+ found.SendPB(w)
+ return
+ }
+
if route == "/GetPatchsets" {
doSendPatchsets(w)
return