switch assets to embed

This commit is contained in:
Nazar Kanaev
2021-02-26 12:33:35 +00:00
parent a3146926b1
commit 121101de9d
8 changed files with 79 additions and 178 deletions

View File

@@ -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] == `*` {