diff --git a/filter.go b/filter.go index 2387e3a7..d4a6b60b 100644 --- a/filter.go +++ b/filter.go @@ -9,6 +9,7 @@ type FilterRouter struct { regex *regexp.Regexp filterFunc FilterFunc hasregex bool + params map[int]string } func (mr *FilterRouter) ValidRouter(router string) bool { diff --git a/router_test.go b/router_test.go index e3aef727..2b1a8a44 100644 --- a/router_test.go +++ b/router_test.go @@ -20,7 +20,7 @@ func (this *TestController) List() { } func (this *TestController) Myext() { - this.Ctx.Output.Body([]byte(this.Ctx.Input.Params(":ext"))) + this.Ctx.Output.Body([]byte(this.Ctx.Input.Param(":ext"))) } func (this *TestController) GetUrl() {