old code
This commit is contained in:
parent
3fb30bb11b
commit
bd65b4eb45
11
http.go
11
http.go
|
@ -6,7 +6,6 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/repostatus"
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -99,16 +98,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if route == "/listGitDirectories" {
|
|
||||||
for i, path := range repostatus.ListGitDirectories() {
|
|
||||||
// log.Info("addRepo()", i, path)
|
|
||||||
path = strings.TrimPrefix(path, me.goSrcPwd.String())
|
|
||||||
path = strings.Trim(path, "/")
|
|
||||||
log.Info(fmt.Sprintf("paths:", i, path))
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if route == "/repo" {
|
if route == "/repo" {
|
||||||
reponame := r.URL.Query().Get("repo")
|
reponame := r.URL.Query().Get("repo")
|
||||||
if reponame == "" {
|
if reponame == "" {
|
||||||
|
|
Loading…
Reference in New Issue