fix test
Showing
2 changed files
with
2 additions
and
1 deletions
| ... | @@ -9,6 +9,7 @@ type FilterRouter struct { | ... | @@ -9,6 +9,7 @@ type FilterRouter struct { |
| 9 | regex *regexp.Regexp | 9 | regex *regexp.Regexp |
| 10 | filterFunc FilterFunc | 10 | filterFunc FilterFunc |
| 11 | hasregex bool | 11 | hasregex bool |
| 12 | params map[int]string | ||
| 12 | } | 13 | } |
| 13 | 14 | ||
| 14 | func (mr *FilterRouter) ValidRouter(router string) bool { | 15 | func (mr *FilterRouter) ValidRouter(router string) bool { | ... | ... |
| ... | @@ -20,7 +20,7 @@ func (this *TestController) List() { | ... | @@ -20,7 +20,7 @@ func (this *TestController) List() { |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | func (this *TestController) Myext() { | 22 | func (this *TestController) Myext() { |
| 23 | this.Ctx.Output.Body([]byte(this.Ctx.Input.Params(":ext"))) | 23 | this.Ctx.Output.Body([]byte(this.Ctx.Input.Param(":ext"))) |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | func (this *TestController) GetUrl() { | 26 | func (this *TestController) GetUrl() { | ... | ... |
-
Please register or sign in to post a comment