summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-08 13:53:23 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-08 16:50:16 +0200
commitd14e83048fe8585f251c44c181816b098b9426df (patch)
treebb389b3c6de8ee7f5216c78773772d76672ad9a1
parentfb2a734c9f02158e881026675492fc0bb1e9219e (diff)
Handle fonts with the file server
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 944c3e0..e2a66ba 100644
--- a/main.go
+++ b/main.go
@@ -32,12 +32,12 @@ func main() {
fs := http.FileServer(http.Dir("static"))
mux := http.NewServeMux()
mux.Handle("GET /favicon.ico", fs)
+ mux.Handle("GET /fonts/", fs)
mux.Handle("GET /style.css", fs)
mux.Handle("GET /", middleware.Pipe(
middleware.Theme,
middleware.I18n,
)(http.HandlerFunc(finalHandler)))
-
mux.Handle("POST /language", http.HandlerFunc(setUserLanguage))
mux.Handle("POST /theme", http.HandlerFunc(setUserTheme))