diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 13:53:23 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-08 16:50:16 +0200 |
commit | d14e83048fe8585f251c44c181816b098b9426df (patch) | |
tree | bb389b3c6de8ee7f5216c78773772d76672ad9a1 | |
parent | fb2a734c9f02158e881026675492fc0bb1e9219e (diff) |
Handle fonts with the file server
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |