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