yunohost-admin/app/src/routes.js

32 lines
660 B
JavaScript
Raw Normal View History

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'
import User from './views/User'
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' }
]
}
}
]
export default routes