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,