From c82db192e10c0485bfd3fb512b89e1d5161d50e3 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 24 Jun 2025 22:13:05 +0100 Subject: [PATCH] Add redirect from root to /notes/ --- cmd/server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/server/main.go b/cmd/server/main.go index b3cd124..6fddcba 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -21,6 +21,7 @@ func main() { router := http.NewServeMux() notesRouter := views.GetRoutes("/notes") + router.Handle("/", http.RedirectHandler("/notes/", http.StatusFound)) router.Handle("/notes/", http.StripPrefix("/notes", notesRouter)) router.Handle( conf.Conf.Static.Root,