Add redirect from root to /notes/

This commit is contained in:
Maximilian Friedersdorff 2025-06-24 22:13:05 +01:00
parent 8f60040f86
commit c82db192e1

View file

@ -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,