mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 00:50:55 +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.GlobalControllerRouter["` + k + `"] = append(beego.GlobalControllerRouter["` + k + `"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "` + strings.TrimSpace(c.Method) + `",
|
Method: "` + strings.TrimSpace(c.Method) + `",
|
||||||
` + "Router: `" + c.Router + "`" + `,
|
` + `Router: "` + c.Router + `"` + `,
|
||||||
AllowHTTPMethods: ` + allmethod + `,
|
AllowHTTPMethods: ` + allmethod + `,
|
||||||
MethodParams: ` + methodParams + `,
|
MethodParams: ` + methodParams + `,
|
||||||
Filters: ` + filters + `,
|
Filters: ` + filters + `,
|
||||||
|
Loading…
Reference in New Issue
Block a user