Index: experimental/webtry/webtry.go |
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go |
index 8e02a751a32f6786f00cb669a837e02d01f9602a..06bedffa5c7e2831424cda9e33313981e440969d 100644 |
--- a/experimental/webtry/webtry.go |
+++ b/experimental/webtry/webtry.go |
@@ -339,10 +339,6 @@ func cssHandler(w http.ResponseWriter, r *http.Request) { |
http.ServeFile(w, r, "css/webtry.css") |
} |
-func jsHandler(w http.ResponseWriter, r *http.Request) { |
- http.ServeFile(w, r, "js/run.js") |
-} |
- |
// imageHandler serves up the PNG of a specific try. |
func imageHandler(w http.ResponseWriter, r *http.Request) { |
log.Printf("Image Handler: %q\n", r.URL.Path) |
@@ -668,7 +664,7 @@ func main() { |
http.HandleFunc("/iframe/", iframeHandler) |
http.HandleFunc("/json/", tryInfoHandler) |
http.HandleFunc("/css/", cssHandler) |
- http.HandleFunc("/js/", jsHandler) |
+ http.Handle("/js/", http.FileServer(http.Dir("./"))) |
// TODO Break out /c/ as it's own handler. |
http.HandleFunc("/", mainHandler) |
log.Fatal(http.ListenAndServe(*port, nil)) |