Serve assets

This commit is contained in:
Martin Polden 2012-11-21 22:52:51 +01:00
parent 98e914c608
commit f1d987d8f9
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ func handler(w http.ResponseWriter, req *http.Request) {
}
func main() {
http.Handle("/assets/", http.StripPrefix("/assets/",
http.FileServer(http.Dir("assets/"))))
http.HandleFunc("/", handler)
err := http.ListenAndServe(":8080", nil)
if err != nil {