summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/http.go b/http.go
index 38e07cf..fbd9fc5 100644
--- a/http.go
+++ b/http.go
@@ -78,6 +78,20 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ if route == "/lookup" {
+ w.Header().Set("Content-Type", "text")
+ fmt.Fprintf(w, "go.wit.com/apps/utils/gowebd Version: %s\n", argv.Version())
+ fmt.Fprintf(w, "\n")
+
+ all := forge.Repos.SortByFullPath()
+ for all.Scan() {
+ repo := all.Next()
+
+ fmt.Fprintf(w, "Namespace=%s FullPath=%s %s\n", repo.Namespace, repo.FullPath)
+ }
+ return
+ }
+
if route == "/goReference.svg" {
writeFile(w, "goReference.svg")
return