mirror of
https://github.com/BluemediaDev/video-platform.git
synced 2025-05-10 17:31:35 +02:00
Initial commit
This commit is contained in:
commit
97917fb531
21 changed files with 9366 additions and 0 deletions
23
src/router/index.js
Normal file
23
src/router/index.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import Home from "../views/Home.vue";
|
||||
import Watch from "../views/Watch.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
name: "home",
|
||||
component: Home,
|
||||
},
|
||||
{
|
||||
path: "/watch",
|
||||
name: "watch",
|
||||
component: Watch,
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue