This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes.js
59 lines (39 loc) · 1.87 KB
/
routes.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
47
48
49
50
51
52
53
54
55
56
57
58
59
const routes = require('next-routes')()
routes
// About
.add('home', '/', '/index')
// About
.add('about jobs', '/about/jobs', '/about/jobs')
.add('about team', '/about/team', '/about/team')
.add('about roadmap', '/roadmap', '/roadmap')
// Account
.add('account confirm', '/confirmation/:token', '/confirmations/account-confirm')
.add('account login', '/login', '/login')
.add('account logout', '/logout', '/logout')
.add('account register', '/register', '/register')
// Characters
.add('character profile', '/my/characters/:id', '/my/character')
// Email Updates
.add('email update confirm', '/email-update-confirmation/:token', '/confirmations/email-update-confirm')
.add('email update reject', '/email-rollback/:token', '/confirmations/email-update-confirm')
// Groups
.add('group create', '/groups/create', '/groups/create')
.add('group manage', '/groups/manage', '/groups/manage')
.add('group search', '/groups/search', '/groups/search')
.add('group profile', '/groups/:id/:tab(details|events|join-requests|members|settings)?', '/groups/group')
// Password reset
.add('password forgot', '/forgot-password', '/forgot-password')
.add('password reset', '/reset(-password)?/:token?', '/reset-password')
// Forums
.add('forum thread create', '/forums/create', '/forums/create')
.add('forum thread view', '/forums/thread/:id/:page?', '/forums/view')
.add('forum list', '/forums/:page?', '/forums/list')
// Users
.add('user profile', '/users/:id', '/users/user')
.add('user profile current', '/my/profile/:tab(details|groups|settings)?', '/users/user')
// Administrative Documents
.add('privacy policy', '/privacy-policy', '/privacy-policy')
.add('terms and conditions', '/terms-and-conditions', '/terms-and-conditions')
// Wordpress Fallback
.add('wordpress proxy', '/:slug?', '/wordpress-proxy')
module.exports = routes