summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-08 08:39:00 -0500
committerJeff Carr <[email protected]>2025-09-08 08:40:32 -0500
commite1411dd1e93914ba240f1813e6922ae87ef98653 (patch)
tree9159a42f6d7ae2190613148633cf1588ee813975 /http.go
parent607886cc6af339db236909f1708248f14cb4bde1 (diff)
work on repos/v0.0.26
Diffstat (limited to 'http.go')
-rw-r--r--http.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/http.go b/http.go
index 2404ca6..bdf7ab3 100644
--- a/http.go
+++ b/http.go
@@ -89,12 +89,15 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
result := gitpb.NewRepos()
switch route {
+ case "/repos/check":
+ result = addRequest(pb, reqPB)
+ log.Infof("repos check result.Len()=%d pb.Len()=%d\n", result.Len(), pb.Len())
case "/repos/pull":
result = pullRequest(pb, reqPB)
case "/repos/add":
result = addRequest(pb, reqPB)
default:
- result = pullRequest(pb, reqPB)
+ log.Info("repos", route, "unknown")
}
if err := result.SendReply(w, reqPB); err != nil {
log.Info("Oh well, Send to client failed. err =", err)