正在显示
1 个修改的文件
包含
26 行增加
和
0 行删除
routers/commentsRouter_.go
0 → 100644
1 | +package routers | ||
2 | + | ||
3 | +import ( | ||
4 | + "github.com/astaxie/beego" | ||
5 | + "github.com/astaxie/beego/context/param" | ||
6 | +) | ||
7 | + | ||
8 | +func init() { | ||
9 | + | ||
10 | + beego.GlobalControllerRouter["opp/controllers:H5Controller"] = append(beego.GlobalControllerRouter["opp/controllers:H5Controller"], | ||
11 | + beego.ControllerComments{ | ||
12 | + Method: "Announcement", | ||
13 | + Router: `/announcement`, | ||
14 | + AllowHTTPMethods: []string{"post"}, | ||
15 | + MethodParams: param.Make(), | ||
16 | + Params: nil}) | ||
17 | + | ||
18 | + beego.GlobalControllerRouter["opp/controllers:H5Controller"] = append(beego.GlobalControllerRouter["opp/controllers:H5Controller"], | ||
19 | + beego.ControllerComments{ | ||
20 | + Method: "AnnouncementSubmit", | ||
21 | + Router: `/announcementSubmit`, | ||
22 | + AllowHTTPMethods: []string{"post"}, | ||
23 | + MethodParams: param.Make(), | ||
24 | + Params: nil}) | ||
25 | + | ||
26 | +} |
-
请 注册 或 登录 后发表评论