{"action":"closed","issue":{"url":"https://api.github.com/repos/hippich/baucis-access/issues/2","labels_url":"https://api.github.com/repos/hippich/baucis-access/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hippich/baucis-access/issues/2/comments","events_url":"https://api.github.com/repos/hippich/baucis-access/issues/2/events","html_url":"https://github.com/hippich/baucis-access/issues/2","id":60908797,"number":2,"title":"How to use?","user":{"login":"unlight","id":301732,"avatar_url":"https://avatars.githubusercontent.com/u/301732?v=3","gravatar_id":"","url":"https://api.github.com/users/unlight","html_url":"https://github.com/unlight","followers_url":"https://api.github.com/users/unlight/followers","following_url":"https://api.github.com/users/unlight/following{/other_user}","gists_url":"https://api.github.com/users/unlight/gists{/gist_id}","starred_url":"https://api.github.com/users/unlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlight/subscriptions","organizations_url":"https://api.github.com/users/unlight/orgs","repos_url":"https://api.github.com/users/unlight/repos","events_url":"https://api.github.com/users/unlight/events{/privacy}","received_events_url":"https://api.github.com/users/unlight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-12T21:32:17Z","updated_at":"2015-03-13T20:11:05Z","closed_at":"2015-03-13T20:11:05Z","body":"I'm trying to do as written in readme.\r\n```js\r\nvar baucis = require('baucis');\r\nvar access = require('baucis-access');\r\nvar userModel = require(\"./userModel.js\");\r\nvar controller = baucis.rest(userModel);\r\n// controller is express router object\r\ncontroller.access({}); // TypeError: Object function router ...  has no method 'access'\r\n```"}}