-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (20 loc) · 710 Bytes
/
index.js
File metadata and controls
23 lines (20 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {createRouter, createWebHistory} from 'vue-router';
import Home from '@/views/Home.vue';
import Video from '@/views/Video.vue';
import Live from '@/views/Live.vue';
import Settings from '@/views/Settings.vue';
import Collection from '@/views/Collection.vue';
import History from '@/views/History.vue';
const routes = [
{path: '/', component: Home},
{path: '/video', component: Video},
{path: '/live', component: Live},
{path: '/settings', component: Settings},
{path: '/collection', component: Collection},
{path: '/history', component: History},
];
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});
export default router;