-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.js
More file actions
53 lines (50 loc) · 1.07 KB
/
router.js
File metadata and controls
53 lines (50 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import Vue from 'vue'
import Router from 'vue-router'
import Home from '~/pages/Home'
import HowToPlay from '~/pages/HowToPlay'
import Dashboard from '~/pages/Dashboard'
import Login from '~/pages/Login'
import Logout from '~/pages/Logout'
import Config from '~/pages/Dashboard/Config'
import Status from '~/pages/Dashboard/Status'
import Profile from '~/pages/Dashboard/Profile'
Vue.use(Router)
export function createRouter() {
return new Router({
mode: 'history',
routes: [
{
path: '/',
component: Home,
},
{
path: '/howtoplay',
component: HowToPlay,
},
{
path: '/login',
component: Login,
},
{
path: '/dashboard',
component: Dashboard,
},
{
path: '/dashboard/status',
component: Status,
},
{
path: '/dashboard/profile',
component: Profile,
},
{
path: '/dashboard/config/:id',
component: Config,
},
{
path: '/logout',
component: Logout,
},
],
})
}