This repository was archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.js
More file actions
51 lines (50 loc) · 1.45 KB
/
routes.js
File metadata and controls
51 lines (50 loc) · 1.45 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
// import { API_URL } from '/consts'
export const routes = [
{
namespace: '',
url: '',
routes: {
home: '/',
login: '/login',
logout: '/logout',
signup: '/signup',
forgotPassword: '/forgot-password',
resetPassword: '/reset-password/:resetToken/:userId',
app: '/users',
users: '/users',
user: '/users/:id'
}
},
{
// Mock/placeholder endpoint urls
// Replace with commented block below if working with django-api-starter
namespace: 'api',
url: '',
routes: {
login: 'https://www.mocky.io/v2/5d28e8362c000068003edca8',
signup: 'https://www.mocky.io/v2/5d28efd02c0000cd2f3edcc9',
// If you want to test error states, use the below mock endpoint.
// signup: 'https://run.mocky.io/v3/ecf1c57d-6ab1-4b50-b17b-7646ade58435',
forgotPassword: 'https://www.mocky.io/v2/5d28e8362c000068003edca8',
resetPassword: 'https://www.mocky.io/v2/5e98de313500004d00c48670',
users: 'https://jsonplaceholder.typicode.com/users',
user: 'https://jsonplaceholder.typicode.com/users/:id'
}
}
/*
{
// For use with django-api-starter
// http://github.com/inputlogic/django-api-starter
namespace: 'api',
url: API_URL,
routes: {
login: '/auth/login',
signup: '/auth/signup',
forgotPassword: '/auth/forgot-password',
resetPassword: '/auth/reset-password',
users: '/users',
user: '/users/:id'
}
}
*/
]