Redirect index to meal plan
This commit is contained in:
parent
02a8ad336b
commit
3429faa11a
1 changed files with 3 additions and 1 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue