diff --git a/blobserver/go/camlistored.go b/blobserver/go/camlistored.go index 7fbdb1553..f2a904a39 100644 --- a/blobserver/go/camlistored.go +++ b/blobserver/go/camlistored.go @@ -49,6 +49,7 @@ func handleRoot(conn http.ResponseWriter, req *http.Request) { fmt.Fprintf(conn, "Hi.\n") } else { fmt.Fprintf(conn, "This is camlistored, a Camlistore storage daemon.\n"); + fmt.Fprintf(conn, "

js interface"); } } @@ -75,6 +76,7 @@ func main() { mux := http.NewServeMux() mux.HandleFunc("/", handleRoot) mux.HandleFunc("/camli/", handleCamli) + mux.Handle("/js/", http.FileServer("../../clients/js", "/js/")) fmt.Printf("Starting to listen on http://%v/\n", *listen) err := http.ListenAndServe(*listen, mux) diff --git a/blobserver/go/run.sh b/blobserver/go/run.sh index 4a37c3195..db227cf39 100755 --- a/blobserver/go/run.sh +++ b/blobserver/go/run.sh @@ -2,4 +2,4 @@ mkdir /tmp/camliroot export CAMLI_PASSWORD=foo -make && ./camlistored +make && ./camlistored "$@"