Skip to content

Commit 726ea4a

Browse files
committed
Added routes template for vue
1 parent ec0c66d commit 726ea4a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

templates/vue/routes/foo.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {{{titleUcFirst}}}List from '../components/{{{lc}}}/List.vue';
2+
import {{{titleUcFirst}}}Create from '../components/{{{lc}}}/Create.vue';
3+
import {{{titleUcFirst}}}Update from '../components/{{{lc}}}/Update.vue';
4+
import {{{titleUcFirst}}}Show from '../components/{{{lc}}}/Show.vue';
5+
6+
export default [
7+
{ name: '{{{titleUcFirst}}}List', path: '/{{{name}}}/', component: {{{titleUcFirst}}}List },
8+
{ name: '{{{titleUcFirst}}}Create', path: '/{{{name}}}/create', component: {{{titleUcFirst}}}Create },
9+
{ name: '{{{titleUcFirst}}}Update', path: "/{{{name}}}/edit/:id", component: {{{titleUcFirst}}}Update },
10+
{ name: '{{{titleUcFirst}}}Show', path: "/{{{name}}}/show/:id", component: {{{titleUcFirst}}}Show }
11+
];

0 commit comments

Comments
 (0)