Renamed & moved frontend router.

This commit is contained in:
2020-09-06 14:20:01 +02:00
parent 1d714d1e5a
commit a30dc2a419
2 changed files with 1 additions and 1 deletions

58
src/router.js Normal file
View File

@@ -0,0 +1,58 @@
import VinlottisPage from "@/components/VinlottisPage";
import GeneratePage from "@/components/GeneratePage";
import TodaysPage from "@/components/TodaysPage";
import AllWinesPage from "@/components/AllWinesPage";
import LoginPage from "@/components/LoginPage";
import CreatePage from "@/components/CreatePage";
import AdminPage from "@/components/AdminPage";
import WinnerPage from "@/components/WinnerPage";
import LotteryPage from "@/components/LotteryPage";
import HistoryPage from "@/components/HistoryPage";
const routes = [
{
path: "*",
component: VinlottisPage
},
{
path: "/lottery",
component: LotteryPage
},
{
path: "/dagens",
component: TodaysPage
},
{
path: "/viner",
component: AllWinesPage
},
{
path: "/login",
component: LoginPage
},
{
path: "/create",
component: CreatePage
},
{
path: "/admin",
component: AdminPage
},
{
path: "/lottery/:tab",
component: LotteryPage
},
{
path: "/winner/:id",
component: WinnerPage
},
{
path: "/history",
component: HistoryPage
}
];
export { routes };