Compare commits

..

No commits in common. "551dcf5905740cb3b9a93c884a2d5efc80079531" and "8f60040f863adfdfec03db6989cb1f1d4b39fe57" have entirely different histories.

2 changed files with 0 additions and 2 deletions

View file

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

View file

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