{"action":"created","issue":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/38","repository_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi","labels_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/38/comments","events_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/38/events","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/38","id":152990790,"number":38,"title":"What about refactoring? ^_^","user":{"login":"Santinell","id":3122009,"avatar_url":"https://avatars.githubusercontent.com/u/3122009?v=3","gravatar_id":"","url":"https://api.github.com/users/Santinell","html_url":"https://github.com/Santinell","followers_url":"https://api.github.com/users/Santinell/followers","following_url":"https://api.github.com/users/Santinell/following{/other_user}","gists_url":"https://api.github.com/users/Santinell/gists{/gist_id}","starred_url":"https://api.github.com/users/Santinell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santinell/subscriptions","organizations_url":"https://api.github.com/users/Santinell/orgs","repos_url":"https://api.github.com/users/Santinell/repos","events_url":"https://api.github.com/users/Santinell/events{/privacy}","received_events_url":"https://api.github.com/users/Santinell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-04T11:38:03Z","updated_at":"2016-05-04T14:54:20Z","closed_at":null,"body":"To be honest I don't like the way which you choose for routing.\r\nWhat about to make your router optional?\r\nHow can it be? For example:\r\n\r\n```\r\nopenapi.initialize({\r\n  apiDoc: require('./api-doc.js'),\r\n  app: app,\r\n  router: myRouter // if not set, by default it can be 'fs-routes'\r\n});\r\n```\r\n\r\nIf you don't mind, I can try to make PR"},"comment":{"url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/comments/216890356","html_url":"https://github.com/kogosoftwarellc/express-openapi/issues/38#issuecomment-216890356","issue_url":"https://api.github.com/repos/kogosoftwarellc/express-openapi/issues/38","id":216890356,"user":{"login":"Santinell","id":3122009,"avatar_url":"https://avatars.githubusercontent.com/u/3122009?v=3","gravatar_id":"","url":"https://api.github.com/users/Santinell","html_url":"https://github.com/Santinell","followers_url":"https://api.github.com/users/Santinell/followers","following_url":"https://api.github.com/users/Santinell/following{/other_user}","gists_url":"https://api.github.com/users/Santinell/gists{/gist_id}","starred_url":"https://api.github.com/users/Santinell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santinell/subscriptions","organizations_url":"https://api.github.com/users/Santinell/orgs","repos_url":"https://api.github.com/users/Santinell/repos","events_url":"https://api.github.com/users/Santinell/events{/privacy}","received_events_url":"https://api.github.com/users/Santinell/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T14:54:20Z","updated_at":"2016-05-04T14:54:20Z","body":"If I could handle methods by operationId - yes.\r\nCan I help with it?"}}