summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-12 11:13:26 -0600
committerJeff Carr <[email protected]>2024-01-12 11:13:26 -0600
commit23fa94cbcddf3090a1ffc6793c69d3a19bfcb341 (patch)
tree05e9c54e918d0b53e55a7a5fb66c1c744a1718c6 /main.go
parent0be507b8966e83830ed47f77a19068da05512e61 (diff)
looks up repo url
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.go b/main.go
index 609a267..120d759 100644
--- a/main.go
+++ b/main.go
@@ -2,7 +2,7 @@ package main
import (
"fmt"
- "log"
+ "go.wit.com/log"
"net/http"
"embed"
)
@@ -14,12 +14,14 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
dumpClient(r)
var tmp string
tmp = r.URL.String()
+ url, repourl := findkey(tmp)
+ log.Info("url =", url, "repo url =", repourl)
if tmp == "/test" {
- findFile(w)
+ // findFile(w)
return
}
if tmp == "/gui" {
- doGui(w, "/gui/gui")
+ // doGui(w, "/gui/gui")
return
}
fmt.Fprintln(w, "OK")
@@ -57,7 +59,6 @@ func main() {
}
*/
readconfigfile()
- return
http.HandleFunc("/", okHandler)
err := http.ListenAndServe(":80", nil)
if err != nil {