diff --git a/routers/commentsRouter_controllers.go b/routers/commentsRouter_controllers.go index 962d9a21c..d2cf9ea4b 100644 --- a/routers/commentsRouter_controllers.go +++ b/routers/commentsRouter_controllers.go @@ -1453,7 +1453,7 @@ func init() { beego.ControllerComments{ Method: "GetMenu", Router: `/GetMenu`, - AllowHTTPMethods: []string{"post"}, + AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Filters: nil, Params: nil}) @@ -1471,7 +1471,7 @@ func init() { beego.ControllerComments{ Method: "GetUserRole", Router: `/GetUserRole`, - AllowHTTPMethods: []string{"put"}, + AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Filters: nil, Params: nil})