-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.js
44 lines (43 loc) · 1.33 KB
/
Constants.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
export const URLs = {
signIn: '/',
home: '/home',
signUp: '/sign-up',
profile: '/profile',
user: (userId) => `/user/${userId}`,
addCompany: '/company/add',
editCompany: (companyId) => `company/${companyId}/edit`,
company: (companyId) => `/company/${companyId}`,
503: '/503',
listProfile: '/list-profile',
userHistory: (userId) => {
if (userId) {
return `/user/${userId}/history`;
} else {
return '/history';
}
},
editArash: (companyId, arashId) => `${companyId}/edit-arash/${arashId}`,
addArash: (companyId) => `/company/${companyId}/add-arash`
};
export const serverURLs = {
login: '/accounts/login/',
user: (userId) => {
if (userId) {
return `/user/${userId}/`;
} else {
return '/user/';
}
},
companies: '/companies/',
addCompany: '/add/company/',
company: (companyId) => `/company/${companyId}/`,
addArash: '/add/arash/',
arash: (arashId) => `/arash/${arashId}/`,
arashes: (companyId) => `/company/${companyId}/arashes/`,
userImage: (userId) => `/user-img/${userId}/`,
userLogs: (userId) => `/user/${userId}/logs/`,
users: '/users/',
signUp: '/signup/',
logout: '/logout/',
help: 'http://engold.ui.ac.ir/~zamani/internship/files/introduce.pdf'
};