switch assets to embed
This commit is contained in:
parent
a3146926b1
commit
121101de9d
8 changed files with 79 additions and 178 deletions
|
|
@ -19,7 +19,7 @@ func (r Route) ManualAuth() Route {
|
|||
return r
|
||||
}
|
||||
|
||||
func p(path string, handler func(http.ResponseWriter, *http.Request)) Route {
|
||||
func p(path string, handler http.HandlerFunc) Route {
|
||||
var urlRegexp string
|
||||
urlRegexp = regexp.MustCompile(`[\*\:]\w+`).ReplaceAllStringFunc(path, func(m string) string {
|
||||
if m[0:1] == `*` {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue