2020-07-07 13:48:54 +02:00
|
|
|
import Home from './views/Home'
|
2020-07-08 18:08:07 +02:00
|
|
|
import Login from './views/Login'
|
2020-07-14 19:51:25 +02:00
|
|
|
import Users from './views/Users'
|
2020-07-14 22:44:09 +02:00
|
|
|
import User from './views/User'
|
2020-07-07 13:48:54 +02:00
|
|
|
|
|
|
|
const routes = [
|
2020-07-15 16:39:24 +02:00
|
|
|
{ name: 'home', path: '/', component: Home },
|
|
|
|
{ name: 'login', path: '/login', component: Login, meta: { noAuth: true } },
|
|
|
|
{
|
|
|
|
name: 'users',
|
|
|
|
path: '/users',
|
|
|
|
component: Users,
|
|
|
|
meta: {
|
|
|
|
breadcrumb: [{ name: 'users', trad: 'users' }]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'user',
|
|
|
|
path: '/user/:name',
|
|
|
|
component: User,
|
|
|
|
props: true,
|
|
|
|
meta: {
|
|
|
|
breadcrumb: [
|
|
|
|
{ name: 'users', trad: 'users' },
|
|
|
|
{ name: 'user', param: 'name' }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-07-07 13:48:54 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
export default routes
|