{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/1189","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/1189/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/1189/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/1189/events","html_url":"https://github.com/arangodb/arangodb/issues/1189","id":51965130,"number":1189,"title":"Foxx Manifest: Shared mount points","user":{"login":"stackmagic","id":161776,"avatar_url":"https://avatars.githubusercontent.com/u/161776?v=3","gravatar_id":"","url":"https://api.github.com/users/stackmagic","html_url":"https://github.com/stackmagic","followers_url":"https://api.github.com/users/stackmagic/followers","following_url":"https://api.github.com/users/stackmagic/following{/other_user}","gists_url":"https://api.github.com/users/stackmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/stackmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackmagic/subscriptions","organizations_url":"https://api.github.com/users/stackmagic/orgs","repos_url":"https://api.github.com/users/stackmagic/repos","events_url":"https://api.github.com/users/stackmagic/events{/privacy}","received_events_url":"https://api.github.com/users/stackmagic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arangodb/arangodb/labels/3_Feature","name":"3_Feature","color":"02e10c"},{"url":"https://api.github.com/repos/arangodb/arangodb/labels/foxx","name":"foxx","color":"66aaff"}],"state":"open","locked":false,"assignee":{"login":"pluma","id":1280922,"avatar_url":"https://avatars.githubusercontent.com/u/1280922?v=3","gravatar_id":"","url":"https://api.github.com/users/pluma","html_url":"https://github.com/pluma","followers_url":"https://api.github.com/users/pluma/followers","following_url":"https://api.github.com/users/pluma/following{/other_user}","gists_url":"https://api.github.com/users/pluma/gists{/gist_id}","starred_url":"https://api.github.com/users/pluma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluma/subscriptions","organizations_url":"https://api.github.com/users/pluma/orgs","repos_url":"https://api.github.com/users/pluma/repos","events_url":"https://api.github.com/users/pluma/events{/privacy}","received_events_url":"https://api.github.com/users/pluma/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arangodb/arangodb/milestones/19","html_url":"https://github.com/arangodb/arangodb/milestones/Backlog","labels_url":"https://api.github.com/repos/arangodb/arangodb/milestones/19/labels","id":888043,"number":19,"title":"Backlog","description":"","creator":{"login":"13abylon","id":1833374,"avatar_url":"https://avatars.githubusercontent.com/u/1833374?v=3","gravatar_id":"","url":"https://api.github.com/users/13abylon","html_url":"https://github.com/13abylon","followers_url":"https://api.github.com/users/13abylon/followers","following_url":"https://api.github.com/users/13abylon/following{/other_user}","gists_url":"https://api.github.com/users/13abylon/gists{/gist_id}","starred_url":"https://api.github.com/users/13abylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/13abylon/subscriptions","organizations_url":"https://api.github.com/users/13abylon/orgs","repos_url":"https://api.github.com/users/13abylon/repos","events_url":"https://api.github.com/users/13abylon/events{/privacy}","received_events_url":"https://api.github.com/users/13abylon/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":8,"state":"open","created_at":"2014-12-02T15:01:05Z","updated_at":"2015-11-24T15:02:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-12-15T09:34:02Z","updated_at":"2015-11-24T15:04:01Z","closed_at":null,"body":"(from #1170) It would be nice to be able to mix and match controllers with the same url prefix.\r\n\r\n    \"controllers\": {\r\n        \"/houses\": \"controllers/houses.js\",\r\n        \"/owners\": \"controllers/owners.js\"\r\n    }\r\n\r\nThe above exposes the houses.js as /houses and owners.js as /owners.\r\n\r\nThis of course won't work, the last write wins:\r\n\r\n    \"controllers\": {\r\n        \"/\": \"controllers/houses.js\",\r\n        \"/\": \"controllers/owners.js\"\r\n    }\r\n\r\nOne way to do this could be:\r\n\r\n    \"controllers\": {\r\n        \"/\": [\r\n              \"controllers/houses.js\",\r\n            , \"controllers/owners.js\"\r\n        ],\r\n        \"/admin\": [\r\n              \"controllers/houses.js\",\r\n            , \"controllers/owners.js\"\r\n        ]\r\n    }\r\n\r\nIn this case it would probably also make sense to check for conflicts in mount points. If both controllers in the example had a handler with the same path like \"/hello/:id\" then an error should be thrown during startup of the foxx app."},"comment":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/comments/159294358","html_url":"https://github.com/arangodb/arangodb/issues/1189#issuecomment-159294358","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/1189","id":159294358,"user":{"login":"pluma","id":1280922,"avatar_url":"https://avatars.githubusercontent.com/u/1280922?v=3","gravatar_id":"","url":"https://api.github.com/users/pluma","html_url":"https://github.com/pluma","followers_url":"https://api.github.com/users/pluma/followers","following_url":"https://api.github.com/users/pluma/following{/other_user}","gists_url":"https://api.github.com/users/pluma/gists{/gist_id}","starred_url":"https://api.github.com/users/pluma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluma/subscriptions","organizations_url":"https://api.github.com/users/pluma/orgs","repos_url":"https://api.github.com/users/pluma/repos","events_url":"https://api.github.com/users/pluma/events{/privacy}","received_events_url":"https://api.github.com/users/pluma/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T15:04:01Z","updated_at":"2015-11-24T15:04:01Z","body":"Note that you can have multiple controllers but they have to be in the same file (it's not possible to import controllers because of the magical comments)."}}