{"action":"opened","issue":{"url":"https://api.github.com/repos/scriptish/scriptish/issues/285","repository_url":"https://api.github.com/repos/scriptish/scriptish","labels_url":"https://api.github.com/repos/scriptish/scriptish/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/scriptish/scriptish/issues/285/comments","events_url":"https://api.github.com/repos/scriptish/scriptish/issues/285/events","html_url":"https://github.com/scriptish/scriptish/issues/285","id":218427801,"number":285,"title":"Setting routes on server object should not override  previous routes","user":{"login":"clintonyeb","id":13755676,"avatar_url":"https://avatars1.githubusercontent.com/u/13755676?v=3","gravatar_id":"","url":"https://api.github.com/users/clintonyeb","html_url":"https://github.com/clintonyeb","followers_url":"https://api.github.com/users/clintonyeb/followers","following_url":"https://api.github.com/users/clintonyeb/following{/other_user}","gists_url":"https://api.github.com/users/clintonyeb/gists{/gist_id}","starred_url":"https://api.github.com/users/clintonyeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintonyeb/subscriptions","organizations_url":"https://api.github.com/users/clintonyeb/orgs","repos_url":"https://api.github.com/users/clintonyeb/repos","events_url":"https://api.github.com/users/clintonyeb/events{/privacy}","received_events_url":"https://api.github.com/users/clintonyeb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-31T08:08:14Z","updated_at":"2017-03-31T08:08:14Z","closed_at":null,"body":"When you have two plugins each receiving an instance of the server object.\r\n\r\nWhen plugin1 sets: server.routes([ {route1}, {route2'])\r\nand plugin2 also sets more routes: server.routes([ {route1}, {route2'])\r\n\r\nThe route definition of the second plugin overrides the first plugin's routes definition and any request to the fist plugins endpoints return 404.\r\n\r\nI wish routes definition to be added to already existing routes definitions if present and not override them.\r\n\r\nThank you. (Feature Request)"}}
{"actor":{"display_login":"clintonyeb"}}