Merge branch 'master' into delrepo

This commit is contained in:
Ulrich Schreiner 2015-02-09 07:19:06 +01:00
commit 21f58ee2fb

View file

@ -127,8 +127,11 @@ func main() {
// create handler for static resources
assetserve := http.FileServer(rice.MustFindBox("app").HTTPBox())
http.Handle("/robots.txt", assetserve)
http.Handle("/", assetserve)
http.Handle("/static/", http.StripPrefix("/static", assetserve))
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
r.URL.Path = "/"
assetserve.ServeHTTP(w, r)
})
// create the router and add middleware
mux := router.New()