diff --git a/src/main.js b/src/main.js index 11fadfb..66f2797 100644 --- a/src/main.js +++ b/src/main.js @@ -12,11 +12,13 @@ import CurrentShoppingListPage from './components/shopping/CurrentShoppingListPa import EditMealPage from './components/meals/EditMealPage.vue' import EditRecipePage from './components/recipes/EditRecipePage.vue' + // 2. Define some routes // Each route should map to a component. // We'll talk about nested routes later. const routes = [ - { path: '/', component: MealPlanPage }, + // Redirect index to mealplan + { path: '/', redirect: '/mealplan' }, { path: '/mealplan', component: MealPlanPage }, { path: '/login', component: LoginPage }, { path: '/shopping', component: MyShoppingPage },