{"action":"closed","issue":{"url":"https://api.github.com/repos/JiriChara/vue-kindergarten/issues/30","repository_url":"https://api.github.com/repos/JiriChara/vue-kindergarten","labels_url":"https://api.github.com/repos/JiriChara/vue-kindergarten/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/JiriChara/vue-kindergarten/issues/30/comments","events_url":"https://api.github.com/repos/JiriChara/vue-kindergarten/issues/30/events","html_url":"https://github.com/JiriChara/vue-kindergarten/issues/30","id":280413058,"number":30,"title":"Guarding Routes","user":{"login":"singiankay","id":6782630,"avatar_url":"https://avatars0.githubusercontent.com/u/6782630?v=4","gravatar_id":"","url":"https://api.github.com/users/singiankay","html_url":"https://github.com/singiankay","followers_url":"https://api.github.com/users/singiankay/followers","following_url":"https://api.github.com/users/singiankay/following{/other_user}","gists_url":"https://api.github.com/users/singiankay/gists{/gist_id}","starred_url":"https://api.github.com/users/singiankay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singiankay/subscriptions","organizations_url":"https://api.github.com/users/singiankay/orgs","repos_url":"https://api.github.com/users/singiankay/repos","events_url":"https://api.github.com/users/singiankay/events{/privacy}","received_events_url":"https://api.github.com/users/singiankay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-08T08:36:50Z","updated_at":"2017-12-27T05:31:53Z","closed_at":"2017-12-27T05:31:53Z","author_association":"NONE","body":"Hi, I managed to do the tutorial  [https://codeburst.io/role-based-authorization-for-your-vue-js-and-nuxt-js-applications-using-vue-kindergarten-fd483e013ec5](url)\r\n\r\nBut how do I use this format as stated in this repository?\r\n```\r\nrouter.beforeEach((to, from, next) => {\r\n  to.matched.some((routeRecord) => {\r\n    const perimeter = routeRecord.meta.perimeter\r\n    const Governess = routeRecord.meta.governess || RouteGoverness\r\n    const action = routeRecord.meta.perimeterAction || 'route'\r\n\r\n    if (perimeter) {\r\n      const sandbox = createSandbox(child(), {\r\n        governess: new Governess(),\r\n        perimeters: [\r\n          perimeter,\r\n        ],\r\n\r\n      })\r\n\r\n      return sandbox.guard(action, { to, from, next })\r\n    }\r\n\r\n    return next()\r\n  })\r\n})\r\n```\r\nCan you help me? I attached some parts of my config files\r\n\r\n[attachment.zip](https://github.com/JiriChara/vue-kindergarten/files/1541973/attachment.zip)\r\n"}}
{"actor":{"display_login":"singiankay"}}