diff --git a/cmd/server/main.go b/cmd/server/main.go index 6fddcba..b3cd124 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -21,7 +21,6 @@ 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, diff --git a/internal/notes/views/views.go b/internal/notes/views/views.go index 71d849f..adcc693 100644 --- a/internal/notes/views/views.go +++ b/internal/notes/views/views.go @@ -19,7 +19,6 @@ func GetRoutes(prefix string) *http.ServeMux { myurls = urls.URLs{ Prefix: prefix, URLs: map[string]urls.URL{ - "view_": {Path: "/{note}", Protocol: "GET", Handler: view}, "view": {Path: "/{note}/", Protocol: "GET", Handler: view}, "delete": {Path: "/{note}/delete/", Protocol: "GET", Handler: delete}, "edit": {Path: "/{note}/edit/", Protocol: "GET", Handler: edit},