X-Git-Url: http://jaekl.net/gitweb/?p=quanweb.git;a=blobdiff_plain;f=main%2Fmain.go;h=d30f84b9e76138b41883797c91cb474d5761b786;hp=99c09a08abf0b1c88a77efe08e3fa4c221e15edf;hb=ca96e0b6276f6efe56b102ad8286a2534d6e264b;hpb=d4b5c2903e7b0c2267aa7bfdef514a3d1e447de3 diff --git a/main/main.go b/main/main.go index 99c09a0..d30f84b 100644 --- a/main/main.go +++ b/main/main.go @@ -12,6 +12,10 @@ func main() { var b sql.NullString nsVal(b) + fs := http.FileServer(http.Dir("../app")) + http.Handle("/app/", http.StripPrefix("/app", fs)) + http.HandleFunc("/", handler) + http.ListenAndServe(":8001", nil) }