2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/ui/routes/index.js
2018-07-16 08:45:54 +05:30

24 lines
446 B
JavaScript

import ListAndForm from '../pages/ListAndForm';
import ListAndPrintView from '../pages/ListAndPrintView';
export default [
{
path: '/list/:doctype',
name: 'List',
component: ListAndForm,
props: true
},
{
path: '/edit/:doctype/:name',
name: 'Form',
component: ListAndForm,
props: true
},
{
path: '/print/:doctype/:name',
name: 'PrintView',
component: ListAndPrintView,
props: true
}
];