{"action":"closed","issue":{"url":"https://api.github.com/repos/pleerock/routing-controllers/issues/12","repository_url":"https://api.github.com/repos/pleerock/routing-controllers","labels_url":"https://api.github.com/repos/pleerock/routing-controllers/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/pleerock/routing-controllers/issues/12/comments","events_url":"https://api.github.com/repos/pleerock/routing-controllers/issues/12/events","html_url":"https://github.com/pleerock/routing-controllers/issues/12","id":165173478,"number":12,"title":"container option in options doesn't work","user":{"login":"amcdnl","id":227909,"avatar_url":"https://avatars.githubusercontent.com/u/227909?v=3","gravatar_id":"","url":"https://api.github.com/users/amcdnl","html_url":"https://github.com/amcdnl","followers_url":"https://api.github.com/users/amcdnl/followers","following_url":"https://api.github.com/users/amcdnl/following{/other_user}","gists_url":"https://api.github.com/users/amcdnl/gists{/gist_id}","starred_url":"https://api.github.com/users/amcdnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcdnl/subscriptions","organizations_url":"https://api.github.com/users/amcdnl/orgs","repos_url":"https://api.github.com/users/amcdnl/repos","events_url":"https://api.github.com/users/amcdnl/events{/privacy}","received_events_url":"https://api.github.com/users/amcdnl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T20:31:16Z","updated_at":"2016-07-13T11:53:24Z","closed_at":"2016-07-13T11:53:24Z","body":"The `container` option in `useExpressErver` function does not work. See below.\r\n\r\n```javascript\r\nimport { useExpressServer, useContainer } from 'routing-controllers';\r\nimport { Container } from 'typedi';\r\n\r\nfunction setup(app)\r\n    const controllersPath = path.resolve('dist', 'controllers');\r\n    \r\n    useExpressServer(app, {\r\n      controllerDirs: [ controllersPath ],\r\n      options: { container: Container } // < Does not work\r\n    });\r\n\r\n    useContainer(Container); // Works\r\n}\r\n```"}}
{"actor":{"display_login":"amcdnl"}}