2018-06-27 14:38:27 +00:00
|
|
|
import ListAndForm from '../pages/ListAndForm';
|
2018-07-13 05:16:15 +00:00
|
|
|
import ListAndPrintView from '../pages/ListAndPrintView';
|
2018-09-26 14:20:35 +00:00
|
|
|
import Tree from '../components/Tree';
|
2018-06-27 14:38:27 +00:00
|
|
|
|
|
|
|
export default [
|
|
|
|
{
|
|
|
|
path: '/list/:doctype',
|
|
|
|
name: 'List',
|
|
|
|
component: ListAndForm,
|
|
|
|
props: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/edit/:doctype/:name',
|
|
|
|
name: 'Form',
|
|
|
|
component: ListAndForm,
|
|
|
|
props: true
|
2018-07-13 05:16:15 +00:00
|
|
|
},
|
2018-09-26 14:20:35 +00:00
|
|
|
{
|
|
|
|
path: '/tree/:doctype',
|
|
|
|
name: 'Tree',
|
|
|
|
component: Tree,
|
|
|
|
props: true
|
|
|
|
},
|
2018-07-13 05:16:15 +00:00
|
|
|
{
|
|
|
|
path: '/print/:doctype/:name',
|
|
|
|
name: 'PrintView',
|
|
|
|
component: ListAndPrintView,
|
|
|
|
props: true
|
2018-06-27 14:38:27 +00:00
|
|
|
}
|
|
|
|
];
|