mirror of
https://github.com/nkanaev/yarr.git
synced 2025-12-16 00:50:04 +00:00
switch assets to embed
This commit is contained in:
@@ -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] == `*` {
|
||||
|
||||
Reference in New Issue
Block a user