28 lines
480 B
JavaScript
28 lines
480 B
JavaScript
import Vue from 'vue';
|
|
import Router from 'vue-router';
|
|
import Home from '@/components/Home';
|
|
import New from '@/components/New';
|
|
import Recipe from '@/components/Recipe';
|
|
|
|
Vue.use(Router);
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/new',
|
|
name: 'New',
|
|
component: New,
|
|
},
|
|
{
|
|
path: '/recipe/:recipeId',
|
|
name: 'Recipe',
|
|
component: Recipe,
|
|
},
|
|
],
|
|
});
|