backend: use asarfs as http.FileSystem

This commit is contained in:
Cadey Ratio 2017-01-10 12:38:57 -08:00
parent 6e292d4d1d
commit 90d7b60828
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func main() {
log.Fatal("frontend: ", err)
}
http.Handle("/dist/", fe)
http.Handle("/dist/", http.FileServer(fe))
} else {
log.Println("serving site frontend from filesystem")
http.Handle("/dist/", http.FileServer(http.Dir("./frontend/static/")))