aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2017-01-10 12:38:57 -0800
committerChristine Dodrill <me@christine.website>2017-01-10 12:38:57 -0800
commit90d7b608282481a2eb32e6657bde8bfee807e53a (patch)
treec3607c25f2a665ef376217bae3c99af142078701
parent6e292d4d1d65d83cc089e74063cb70ea63bbd795 (diff)
downloadxesite-90d7b608282481a2eb32e6657bde8bfee807e53a.tar.xz
xesite-90d7b608282481a2eb32e6657bde8bfee807e53a.zip
backend: use asarfs as http.FileSystem
-rw-r--r--backend/christine.website/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/christine.website/main.go b/backend/christine.website/main.go
index faad4a2..ce0e507 100644
--- a/backend/christine.website/main.go
+++ b/backend/christine.website/main.go
@@ -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/")))