{"action":"opened","issue":{"url":"https://api.github.com/repos/lfq7413/tomato/issues/1","repository_url":"https://api.github.com/repos/lfq7413/tomato","labels_url":"https://api.github.com/repos/lfq7413/tomato/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lfq7413/tomato/issues/1/comments","events_url":"https://api.github.com/repos/lfq7413/tomato/issues/1/events","html_url":"https://github.com/lfq7413/tomato/issues/1","id":176734455,"number":1,"title":"allowMethodOverride","user":{"login":"umdp","id":14992986,"avatar_url":"https://avatars.githubusercontent.com/u/14992986?v=3","gravatar_id":"","url":"https://api.github.com/users/umdp","html_url":"https://github.com/umdp","followers_url":"https://api.github.com/users/umdp/followers","following_url":"https://api.github.com/users/umdp/following{/other_user}","gists_url":"https://api.github.com/users/umdp/gists{/gist_id}","starred_url":"https://api.github.com/users/umdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umdp/subscriptions","organizations_url":"https://api.github.com/users/umdp/orgs","repos_url":"https://api.github.com/users/umdp/repos","events_url":"https://api.github.com/users/umdp/events{/privacy}","received_events_url":"https://api.github.com/users/umdp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T19:56:57Z","updated_at":"2016-09-13T19:56:57Z","closed_at":null,"body":"I recommended to add allowMethodOverride middle-ware, it cause javascript SDK access denied-- 405 Method Not Allowed.\r\n\r\nnodejs code:\r\n---------------------------------------------------------------------------\r\nexport function allowMethodOverride(req, res, next) {\r\n  if (req.method === 'POST' && req.body._method) {\r\n    req.originalMethod = req.method;\r\n    req.method = req.body._method;\r\n    delete req.body._method;\r\n  }\r\n  next();\r\n};"}}
{"actor":{"display_login":"umdp"}}