Commit 0da9b4d0 authored by Andre de Sousa's avatar Andre de Sousa

CHR: added initial routes

parent 9591e7b3
const routes = [
{
path: '/a',
path: '/',
component: () => import('layouts/MyLayout.vue'),
children: [
{ path: '', component: () => import('pages/Index.vue') }
]
},
{
path: '/',
component: () => import('components/form.vue')
path: '/transductors',
component: () => import('components/transductors/Transductors.vue'),
children: [
{ path: '/:id', component: () => import('components/transductors/Show.vue'), props: true },
{ path: '/:id/edit', component: () => import('components/transductors/Form.vue'), props: true },
{ path: '/new', component: () => import('components/transductors/Form.vue') }
]
},
{
path: '/servers',
component: () => import('components/slaves/Slaves.vue'),
children: [
{ path: '/:id', component: () => import('components/slaves/Show.vue'), props: true },
{ path: '/:id/edit', component: () => import('components/slaves/Form.vue'), props: true },
{ path: '/new', component: () => import('components/slaves/Form.vue') }
]
},
{
path: '/buildings',
component: () => import('components/buildings/Buildings.vue'),
children: [
{ path: '/:id', component: () => import('components/buildings/Show.vue'), props: true },
{ path: '/:id/edit', component: () => import('components/buildings/Form.vue'), props: true },
{ path: '/new', component: () => import('components/buildings/Form.vue') }
]
},
{
path: '/campi',
component: () => import('components/campi/Campi.vue'),
children: [
{ path: '/:id', component: () => import('components/campi/Show.vue'), props: true },
{ path: '/:id/edit', component: () => import('components/campi/Form.vue'), props: true },
{ path: '/new', component: () => import('components/campi/Form.vue') }
]
},
{
path: '/dashboard',
component: () => import('components/dashboard/Dashboard.vue')
}
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment