diff options
| author | Jeff Carr <[email protected]> | 2025-06-30 08:43:50 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-06-30 08:44:44 -0500 | 
| commit | 735bfd81223430b900d996b30c22b82b8e3a1146 (patch) | |
| tree | 074366b5f5f96fc152d192c1a5d5becd7fb3fa11 | |
| parent | 7458af2162ea4c3ec4f559eee6e0aba35204ee5f (diff) | |
start /lookupv0.22.99v0.22.98v0.22.97v0.22.96v0.22.95v0.22.94v0.22.93v0.22.92v0.22.91v0.22.90v0.22.89v0.22.88v0.22.87v0.22.86v0.22.85v0.22.84v0.22.83v0.22.100
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | http.go | 14 | 
2 files changed, 16 insertions, 0 deletions
@@ -28,6 +28,8 @@ install:  prod: build  	make stop  	cp gowebd /usr/bin/gowebd +	# allow the binary to open ports below 1024 +	setcap 'cap_net_bind_service=+ep' /usr/bin/gowebd  	make start  	make log @@ -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  | 
