Re-added named routes.
This commit is contained in:
@@ -20,30 +20,37 @@ import AllRequestedWines from "@/components/AllRequestedWines";
|
|||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: "*",
|
path: "*",
|
||||||
|
name: "Hjem",
|
||||||
component: VinlottisPage
|
component: VinlottisPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/lottery",
|
path: "/lottery",
|
||||||
|
name: "Lotteri",
|
||||||
component: LotteryPage
|
component: LotteryPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/dagens",
|
path: "/dagens",
|
||||||
|
name: "Dagens vin",
|
||||||
component: TodaysPage
|
component: TodaysPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/viner",
|
path: "/viner",
|
||||||
|
name: "All viner",
|
||||||
component: AllWinesPage
|
component: AllWinesPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
|
name: "Login",
|
||||||
component: LoginPage
|
component: LoginPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/create",
|
path: "/create",
|
||||||
|
name: "Registrer",
|
||||||
component: CreatePage
|
component: CreatePage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/admin",
|
path: "/admin",
|
||||||
|
name: "Admin side",
|
||||||
component: AdminPage
|
component: AdminPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -53,25 +60,35 @@ const routes = [
|
|||||||
{
|
{
|
||||||
path: "/winner/:id",
|
path: "/winner/:id",
|
||||||
component: WinnerPage
|
component: WinnerPage
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/history/:date",
|
||||||
|
name: "Historie for dato",
|
||||||
|
component: HistoryPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/history",
|
path: "/history",
|
||||||
|
name: "Historie",
|
||||||
component: HistoryPage
|
component: HistoryPage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/highscore/:name",
|
path: "/highscore/:name",
|
||||||
|
name: "Personlig topplisten",
|
||||||
component: PersonalHighscorePage
|
component: PersonalHighscorePage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/highscore",
|
path: "/highscore",
|
||||||
|
name: "Topplisten",
|
||||||
component: HighscorePage
|
component: HighscorePage
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/request",
|
path: "/request",
|
||||||
|
name: "Etterspør vin",
|
||||||
component: RequestWine
|
component: RequestWine
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/requested-wines",
|
path: "/requested-wines",
|
||||||
|
name: "Etterspurte vin",
|
||||||
component: AllRequestedWines
|
component: AllRequestedWines
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user