summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2cc3b41..464f93a 100644
--- a/main.go
+++ b/main.go
@@ -32,7 +32,11 @@ func main() {
mux := http.NewServeMux()
mux.Handle("GET /favicon.ico", fs)
mux.Handle("GET /style.css", fs)
- mux.Handle("GET /", middleware.I18n(http.HandlerFunc(finalHandler)))
+ mux.Handle("GET /", middleware.Pipe(
+ middleware.I18n,
+ middleware.Theme,
+ )(http.HandlerFunc(finalHandler)))
+
mux.Handle("POST /language", http.HandlerFunc(setUserLanguage))
portStr := ":" + strconv.Itoa(*port)