Redirect index to meal plan

This commit is contained in:
jableader 2024-05-21 21:10:36 +10:00
parent 02a8ad336b
commit 3429faa11a

View file

@ -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 },