implement dynamic theming

This commit is contained in:
csehviktor
2025-08-01 20:50:13 +02:00
parent b8efad7398
commit 914f4b8a74
2 changed files with 7 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ func main() {
mux.HandleFunc("GET /", httpHandler.HandleHome)
mux.HandleFunc("POST /", httpHandler.HandleSet)
mux.HandleFunc("GET /{id}", httpHandler.HandleGet)
mux.HandleFunc("GET /{id}/{theme}", httpHandler.HandleGet)
slog.Info("starting http server on", "addr", addr)
err := http.ListenAndServe(addr, mux)