From d14e83048fe8585f251c44c181816b098b9426df Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 8 Aug 2024 13:53:23 +0200 Subject: Handle fonts with the file server --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3