mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:20:54 +00:00
fix test
This commit is contained in:
parent
f9e732b5ce
commit
b16ef12ac0
@ -9,6 +9,7 @@ type FilterRouter struct {
|
|||||||
regex *regexp.Regexp
|
regex *regexp.Regexp
|
||||||
filterFunc FilterFunc
|
filterFunc FilterFunc
|
||||||
hasregex bool
|
hasregex bool
|
||||||
|
params map[int]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mr *FilterRouter) ValidRouter(router string) bool {
|
func (mr *FilterRouter) ValidRouter(router string) bool {
|
||||||
|
@ -20,7 +20,7 @@ func (this *TestController) List() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *TestController) Myext() {
|
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() {
|
func (this *TestController) GetUrl() {
|
||||||
|
Loading…
Reference in New Issue
Block a user