Created
March 24, 2019 18:53
-
-
Save igorkosta/92c4b837b2bea9180c60e3c844c5efa3 to your computer and use it in GitHub Desktop.
src/router/routes/private.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Accounts from '@/views/Accounts/Index.vue' | |
import Dashboard from '@/views/Dashboard/Index.vue' | |
import Settings from '@/views/Settings/Index.vue' | |
const routes = [ | |
{ | |
path: '/accounts', | |
name: 'accounts', | |
component: Accounts | |
}, | |
{ | |
path: '/dashboard', | |
name: 'dashboard', | |
component: Dashboard | |
}, | |
{ | |
path: '/settings', | |
name: 'settings', | |
component: Settings | |
} | |
] | |
export default routes.map(route => { | |
return { ...route, meta: { public: false } } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment