1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 18:00:54 +00:00

Fix generated code 4384

This commit is contained in:
Ming Deng 2020-12-22 21:19:13 +08:00
parent 3d93903f9e
commit 9418b243d0

View File

@ -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 + `,