-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
46 lines (46 loc) · 1.13 KB
/
nuxt.config.js
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
export default {
plugins: ['~/plugins/request.js', '~/plugins/day.js'],
router: {
linkActiveClass: 'active',
extendRoutes (routes, resolve) {
routes.splice(0)
routes.push(...[
{
name: 'home',
path: '/',
component: resolve(__dirname, 'pages/home')
},
{
name: 'login',
path: '/login',
component: resolve(__dirname, 'pages/login')
},
{
name: 'register',
path: '/register',
component: resolve(__dirname, 'pages/login')
},
{
name: 'profile',
path: '/profile/:username',
component: resolve(__dirname, 'pages/profile')
},
{
name: 'settings',
path: '/settings',
component: resolve(__dirname, 'pages/settings')
},
{
name: 'editor',
path: '/editor/:slug?',
component: resolve(__dirname, 'pages/editor')
},
{
name: 'article',
path: '/article/:slug',
component: resolve(__dirname, 'pages/article')
}
])
}
}
}