Skip to content
Permalink
Browse files

Add AssetInfo to assetfs struct

  • Loading branch information...
thomasf committed May 31, 2016
1 parent 0c2a4f0 commit e0c4fa4ac5a5ee4b9cc9cd1f02494f4452b2ab85
Showing with 5 additions and 1 deletion.
  1. +5 −1 pkg/client/http.go
@@ -101,7 +101,11 @@ func createServeMux() (*http.ServeMux, error) {
http.FileServer(http.Dir(fmt.Sprintf("res/%s", v)))))
}
} else {
fileserver := http.FileServer(&assetfs.AssetFS{Asset: res.Asset, AssetDir: res.AssetDir})
fileserver := http.FileServer(&assetfs.AssetFS{
Asset: res.Asset,
AssetDir: res.AssetDir,
AssetInfo: res.AssetInfo,
})
mux.Handle("/img/", fileserver)
mux.Handle("/generated/", fileserver)
mux.Handle("/fonts/", fileserver)

0 comments on commit e0c4fa4

Please sign in to comment.
You can’t perform that action at this time.