summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 120d759..061ee47 100644
--- a/main.go
+++ b/main.go
@@ -16,8 +16,12 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
tmp = r.URL.String()
url, repourl := findkey(tmp)
log.Info("url =", url, "repo url =", repourl)
+ if repourl != "" {
+ doGui(w, url, repourl)
+ return
+ }
if tmp == "/test" {
- // findFile(w)
+ findFile(w)
return
}
if tmp == "/gui" {