22 lines
373 B
JavaScript
22 lines
373 B
JavaScript
|
import Vue from 'vue';
|
||
|
import Router from 'vue-router';
|
||
|
|
||
|
import The404Page from './components/The404Page';
|
||
|
import TheRecipeList from './components/TheRecipeList';
|
||
|
|
||
|
Vue.use(Router);
|
||
|
|
||
|
export default new Router({
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'recipeList',
|
||
|
component: TheRecipeList
|
||
|
},
|
||
|
{
|
||
|
path: '*',
|
||
|
component: The404Page
|
||
|
}
|
||
|
]
|
||
|
})
|