@ -0,0 +1,5 @@
export default function (context) {
if (!context.store.getters.auth.isAuthenticated) {
context.redirect('auth')
}
@ -0,0 +1,3 @@
context.store.dispatch('auth/initAuth', context.req)