Allow creating new note without trailing slash
This commit is contained in:
parent
c82db192e1
commit
551dcf5905
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ 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},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue