{"action":"created","issue":{"url":"https://api.github.com/repos/meteorhacks/flow-router/issues/69","labels_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/69/comments","events_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/69/events","html_url":"https://github.com/meteorhacks/flow-router/pull/69","id":66862941,"number":69,"title":"[WIP] Add group routes support","user":{"login":"delgermurun","id":492616,"avatar_url":"https://avatars.githubusercontent.com/u/492616?v=3","gravatar_id":"","url":"https://api.github.com/users/delgermurun","html_url":"https://github.com/delgermurun","followers_url":"https://api.github.com/users/delgermurun/followers","following_url":"https://api.github.com/users/delgermurun/following{/other_user}","gists_url":"https://api.github.com/users/delgermurun/gists{/gist_id}","starred_url":"https://api.github.com/users/delgermurun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delgermurun/subscriptions","organizations_url":"https://api.github.com/users/delgermurun/orgs","repos_url":"https://api.github.com/users/delgermurun/repos","events_url":"https://api.github.com/users/delgermurun/events{/privacy}","received_events_url":"https://api.github.com/users/delgermurun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-04-07T11:44:59Z","updated_at":"2015-04-08T21:55:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/69","html_url":"https://github.com/meteorhacks/flow-router/pull/69","diff_url":"https://github.com/meteorhacks/flow-router/pull/69.diff","patch_url":"https://github.com/meteorhacks/flow-router/pull/69.patch"},"body":"```js\r\nvar group = FlowRouter.group({\r\n  prefix: '/admin',\r\n  middlewares: [\r\n    function(path, next) {\r\n      console.log('running group middleware');\r\n      next();\r\n    }\r\n  ]\r\n});\r\n\r\ngroup.route('', {\r\n  action: function() {\r\n    FlowLayout.render('componentLayout', {content: 'admin'});\r\n  },\r\n  middlewares: [\r\n    function(path, next) {\r\n      console.log('running /admin middleware');\r\n      next();\r\n    }\r\n  ]\r\n});\r\n\r\ngroup.route('/posts', {\r\n  action: function() {\r\n    FlowLayout.render('componentLayout', {content: 'posts'});\r\n  }\r\n});\r\n```\r\n\r\nPS: If someone has better implementation than mine, feel free to create another PR. I'll close it and let's workon yours. "},"comment":{"url":"https://api.github.com/repos/meteorhacks/flow-router/issues/comments/91047699","html_url":"https://github.com/meteorhacks/flow-router/pull/69#issuecomment-91047699","issue_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/69","id":91047699,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T21:55:10Z","updated_at":"2015-04-08T21:55:10Z","body":"This is quite good. I'm happy to go with the PR.\r\nNow we can write some tests.\r\nThis time, I'll let wait until you squash commits :)"}}