Skip to content

Instantly share code, notes, and snippets.

@igorkosta
Created March 24, 2019 18:53
Show Gist options
  • Save igorkosta/92c4b837b2bea9180c60e3c844c5efa3 to your computer and use it in GitHub Desktop.
Save igorkosta/92c4b837b2bea9180c60e3c844c5efa3 to your computer and use it in GitHub Desktop.
src/router/routes/private.js
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