{"action":"created","issue":{"url":"https://api.github.com/repos/mcollina/upring/issues/3","repository_url":"https://api.github.com/repos/mcollina/upring","labels_url":"https://api.github.com/repos/mcollina/upring/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/upring/issues/3/comments","events_url":"https://api.github.com/repos/mcollina/upring/issues/3/events","html_url":"https://github.com/mcollina/upring/pull/3","id":155257866,"number":3,"title":"Provide a router using pattern matching","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-17T13:20:46Z","updated_at":"2016-05-18T07:13:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mcollina/upring/pulls/3","html_url":"https://github.com/mcollina/upring/pull/3","diff_url":"https://github.com/mcollina/upring/pull/3.diff","patch_url":"https://github.com/mcollina/upring/pull/3.patch"},"body":"cc @lucamaraschi "},"comment":{"url":"https://api.github.com/repos/mcollina/upring/issues/comments/219944793","html_url":"https://github.com/mcollina/upring/pull/3#issuecomment-219944793","issue_url":"https://api.github.com/repos/mcollina/upring/issues/3","id":219944793,"user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T07:13:08Z","updated_at":"2016-05-18T07:13:08Z","body":"Something like:\r\n\r\n```js\r\nupring.add('hello', (req, reply) => {\r\n  reply(null, { hello: 'world' })\r\n})\r\n```\r\n\r\nand\r\n\r\n```js\r\ninstance.request({\r\n  cmd: 'hello'\r\n}, console.log)\r\n```\r\n\r\nI really care about passing a single object to `request`, as _optionally_ support multiple properties in add. I do not want applications to force a `myservice.hello` notation to namespace things, and I imagine providing to provide some standard services (queue, pubsub, k/v, discovery, circuit breaker) on top of the upring."}}