more flexibility in naming

This commit is contained in:
Ted Unangst 2019-09-18 18:30:04 -04:00
parent 99efbe1d1f
commit 234f4b2dad
1 changed files with 2 additions and 2 deletions

4
web.go
View File

@ -1505,9 +1505,9 @@ func serve() {
loggedin.Handle("/saveuser", login.CSRFWrap("saveuser", http.HandlerFunc(saveuser)))
loggedin.Handle("/ximport", login.CSRFWrap("ximport", http.HandlerFunc(ximport)))
loggedin.HandleFunc("/honkers", showhonkers)
loggedin.HandleFunc("/h/{name:[[:alnum:]]+}", showhonker)
loggedin.HandleFunc("/h/{name:[[:alnum:]_.-]+}", showhonker)
loggedin.HandleFunc("/h", showhonker)
loggedin.HandleFunc("/c/{name:[[:alnum:]]+}", showcombo)
loggedin.HandleFunc("/c/{name:[[:alnum:]_.-]+}", showcombo)
loggedin.HandleFunc("/c", showcombos)
loggedin.HandleFunc("/t", showconvoy)
loggedin.HandleFunc("/q", showsearch)