mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 20:00:54 +00:00
Update parser.go
修复genRouterCode方法解析 router 注释(// @router) 单双引号引起的bug
This commit is contained in:
parent
8f3d1c5f42
commit
ab33d683ea
@ -500,7 +500,7 @@ func genRouterCode(pkgRealpath string) {
|
||||
beego.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
|
||||
beego.ControllerComments{
|
||||
Method: "` + strings.TrimSpace(c.Method) + `",
|
||||
` + "Router: `" + c.Router + "`" + `,
|
||||
` + `Router: "` + c.Router + `"` + `,
|
||||
AllowHTTPMethods: ` + allmethod + `,
|
||||
MethodParams: ` + methodParams + `,
|
||||
Filters: ` + filters + `,
|
||||
|
Loading…
Reference in New Issue
Block a user