From 20136758021852f9b97d9298c36129fad467920d Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 11 Oct 2020 19:10:15 +0200 Subject: [PATCH] Re-added named routes. --- src/router.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 } ];