diff --git a/src/router.js b/src/router.js index 78064b4..deea0ba 100644 --- a/src/router.js +++ b/src/router.js @@ -20,30 +20,37 @@ import AllRequestedWines from "@/components/AllRequestedWines"; const routes = [ { path: "*", + name: "Hjem", component: VinlottisPage }, { path: "/lottery", + name: "Lotteri", component: LotteryPage }, { path: "/dagens", + name: "Dagens vin", component: TodaysPage }, { path: "/viner", + name: "All viner", component: AllWinesPage }, { path: "/login", + name: "Login", component: LoginPage }, { path: "/create", + name: "Registrer", component: CreatePage }, { path: "/admin", + name: "Admin side", component: AdminPage }, { @@ -53,25 +60,35 @@ const routes = [ { path: "/winner/:id", component: WinnerPage + }, + { + path: "/history/:date", + name: "Historie for dato", + component: HistoryPage }, { path: "/history", + name: "Historie", component: HistoryPage }, { path: "/highscore/:name", + name: "Personlig topplisten", component: PersonalHighscorePage }, { path: "/highscore", + name: "Topplisten", component: HighscorePage }, { path: "/request", + name: "Etterspør vin", component: RequestWine }, { path: "/requested-wines", + name: "Etterspurte vin", component: AllRequestedWines } ];