Initial project and page setup.
This commit is contained in:
7
src/router/router.js
Normal file
7
src/router/router.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import { routes } from "./routes";
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes: routes
|
||||
});
|
21
src/router/routes.js
Normal file
21
src/router/routes.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import OverviewInfo from "@/pages/OverviewInfo.vue";
|
||||
import MinecraftServer from "@/pages/MinecraftServer.vue";
|
||||
import SteamServer from "@/pages/SteamServer.vue";
|
||||
|
||||
export const routes = [
|
||||
{
|
||||
path: "/",
|
||||
name: "IntroPortal",
|
||||
component: OverviewInfo,
|
||||
},
|
||||
{
|
||||
path: "/remcs",
|
||||
name: "remcs",
|
||||
component: MinecraftServer,
|
||||
},
|
||||
{
|
||||
path: "/steam",
|
||||
name: "steam",
|
||||
component: SteamServer,
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user