{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/flow-router/issues/332","labels_url":"https://api.github.com/repos/kadirahq/flow-router/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/flow-router/issues/332/comments","events_url":"https://api.github.com/repos/kadirahq/flow-router/issues/332/events","html_url":"https://github.com/kadirahq/flow-router/issues/332","id":107877798,"number":332,"title":"Is GitHub style routing officially supported?","user":{"login":"derwaldgeist","id":3984535,"avatar_url":"https://avatars.githubusercontent.com/u/3984535?v=3","gravatar_id":"","url":"https://api.github.com/users/derwaldgeist","html_url":"https://github.com/derwaldgeist","followers_url":"https://api.github.com/users/derwaldgeist/followers","following_url":"https://api.github.com/users/derwaldgeist/following{/other_user}","gists_url":"https://api.github.com/users/derwaldgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/derwaldgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derwaldgeist/subscriptions","organizations_url":"https://api.github.com/users/derwaldgeist/orgs","repos_url":"https://api.github.com/users/derwaldgeist/repos","events_url":"https://api.github.com/users/derwaldgeist/events{/privacy}","received_events_url":"https://api.github.com/users/derwaldgeist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T09:12:55Z","updated_at":"2015-09-24T18:26:54Z","closed_at":"2015-09-24T18:26:54Z","body":"I want to set-up a routing that resembles GitHub's. That means:\r\n>\r\n```\r\n/\r\n```\r\nis a home-page\r\n```\r\n/:user\r\n```\r\nis a user page\r\n```\r\n/:user/:repo\r\n```\r\nis a repository page\r\n\r\nbut\r\n>\r\n```\r\n/reservedword\r\n```\r\nroutes to a special route, based on the reserved word (like ```https://github.com/pulls```)\r\n```\r\n/reservedword/subpage\r\n```\r\nthe same for sub-pages\r\n\r\nI found out that this kind of routing actually works, but only if you set-up the routes in the correct order. That means: The routes that define the \"reserved words\" have to be initialized first, and then the generic fall-back routes (using parameters). If I do it the other way round, the parametrized routes take precedence.\r\n\r\nYet, I am wondering if this is just working \"by chance\", or if I may rely on this behaviour? It would have a heavy impact on my site if the routing behaviour would change in the future."},"comment":{"url":"https://api.github.com/repos/kadirahq/flow-router/issues/comments/143011968","html_url":"https://github.com/kadirahq/flow-router/issues/332#issuecomment-143011968","issue_url":"https://api.github.com/repos/kadirahq/flow-router/issues/332","id":143011968,"user":{"login":"derwaldgeist","id":3984535,"avatar_url":"https://avatars.githubusercontent.com/u/3984535?v=3","gravatar_id":"","url":"https://api.github.com/users/derwaldgeist","html_url":"https://github.com/derwaldgeist","followers_url":"https://api.github.com/users/derwaldgeist/followers","following_url":"https://api.github.com/users/derwaldgeist/following{/other_user}","gists_url":"https://api.github.com/users/derwaldgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/derwaldgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derwaldgeist/subscriptions","organizations_url":"https://api.github.com/users/derwaldgeist/orgs","repos_url":"https://api.github.com/users/derwaldgeist/repos","events_url":"https://api.github.com/users/derwaldgeist/events{/privacy}","received_events_url":"https://api.github.com/users/derwaldgeist/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T18:26:54Z","updated_at":"2015-09-24T18:26:54Z","body":"Ok, thanks a lot for the quick reply!"}}