generated from GTBitsOfGood/nextjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.js
70 lines (70 loc) · 2.17 KB
/
urls.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
60
61
62
63
64
65
66
67
68
69
70
export default {
pages: {
index: "/",
login: "/login",
library: "/library",
reportbuilder: "/report-builder",
addstandard: "/add-standard",
},
api: {
example: "/api/example",
buildingType: {
create: "/api/buildingType/create/",
get: "/api/buildingType/get/",
delete: "/api/buildingType/delete/",
},
card: {
create: "/api/card/create/",
insertMany: "/api/card/create/insertMany",
get: "/api/card/get/",
getIds: "/api/card/getIds/",
getPagination: "/api/card/getPagination?page=",
update: "/api/card/update/",
delete: "/api/card/delete/",
thumbsUp: "/api/card/thumbsUp",
thumbsDown: "/api/card/thumbsDown",
thumbsUpAndDown: "/api/card/thumbsUpAndDown",
},
user: {
signUp: "/api/user/sign-up",
login: "/api/user/login",
logout: "/api/user/logout",
getCurrent: "/api/user",
getAll: "/api/user/get",
getCurrentTesting: "/api/user/get", // add id to query
getArchivedReports: "/api/user/get/archivedReports",
standards: {
get: "/api/user/standards/get/",
update: "/api/user/standards/update",
},
activeReport: {
get: "/api/user/active-report/get",
getUnpopulated: "/api/user/active-report/get-unpopulated",
add: "/api/user/active-report/add",
remove: "/api/user/active-report/remove",
update: "/api/user/active-report/update",
change: "/api/user/active-report/change",
},
archivedReport: {
add: "/api/user/archived-report/add",
delete: "/api/user/archived-report/delete",
},
report: {
create: "/api/report/create",
get: "/api/report/get",
update: "/api/report/update",
delete: "/api/report/delete",
},
},
tag: {
create: "/api/tag/create",
getTags: "/api/tag/get",
//This is to get all the tags sorted based on first alphabet of each character in the form of a object
getObject: "/api/tag/get/tagObject",
delete: "api/tag/delete",
update: "api/tag/update",
getTag: "/api/tag/get/tag",
},
revalidate: "/api/revalidate?pathToRevalidate=",
},
};