-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
818fe63
commit 9adcdaa
Showing
1 changed file
with
57 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,63 @@ | ||
const login = "/auth/login" | ||
const validateToken = "/auth/validateToken" | ||
const refreshToken = "/auth/refresh-token" | ||
const validateCertificate = "/certificate/validate" | ||
const changePassword = "/admin/change-password" | ||
const login = "/auth/login"; | ||
const validateToken = "/auth/validateToken"; | ||
const refreshToken = "/auth/refresh-token"; | ||
const validateCertificate = "/certificate/validate"; | ||
const changePassword = "/admin/change-password"; | ||
|
||
const fetchAdminByUsername = "/admin/get/byUsername" | ||
const fetchAdmins = "/admin" | ||
const fetchUser = "/user/get" | ||
const fetchUsers = "/user" | ||
const fetchSuggestionUsers = "/user/get-suggestions" | ||
const fetchCertificate = "/certificate/get" | ||
const fetchCertificates = "/certificate" | ||
const fetchCertificatesByUser = "/certificate/byUser" | ||
const fetchAdminsAnalytics = "/analytics/admin" | ||
const fetchUsersAnalytics = "/analytics/user" | ||
const fetchCertificatesAnalytics = "/analytics/certificate" | ||
const fetchActivities = "/activity" | ||
const fetchAdminByUsername = "/admin/get/byUsername"; | ||
const fetchAdmins = "/admin"; | ||
const fetchUser = "/user/get"; | ||
const fetchUsers = "/user"; | ||
const fetchSuggestionUsers = "/user/get-suggestions"; | ||
const fetchCertificate = "/certificate/get"; | ||
const fetchCertificates = "/certificate"; | ||
const fetchCertificatesByUser = "/certificate/byUser"; | ||
const fetchAdminsAnalytics = "/analytics/admin"; | ||
const fetchUsersAnalytics = "/analytics/user"; | ||
const fetchCertificatesAnalytics = "/analytics/certificate"; | ||
const fetchActivities = "/activity"; | ||
const fetchEvents = "/event"; | ||
const fetchReports = "/certificate-bulk-report"; | ||
|
||
const postNewUser = "/user/add" | ||
const postNewCertificate = "/certificate/add" | ||
const postNewThirdPartyCertificate = "/certificate/add/third-party" | ||
const postNewUser = "/user/add"; | ||
const postNewCertificate = "/certificate/add"; | ||
const postNewThirdPartyCertificate = "/certificate/add/third-party"; | ||
const postCertificateBulk = "/certificate-bulk/add"; | ||
|
||
const updateUser = "/user/update" | ||
const updateCertificate = "/certificate/update" | ||
const updateUser = "/user/update"; | ||
const updateCertificate = "/certificate/update"; | ||
|
||
const deleteUser = "/user/delete" | ||
const deleteCertificate = "/certificate/delete" | ||
const deleteUser = "/user/delete"; | ||
const deleteCertificate = "/certificate/delete"; | ||
|
||
const requests = { | ||
login, | ||
validateToken, | ||
refreshToken, | ||
validateCertificate, | ||
changePassword, | ||
fetchAdminByUsername, | ||
fetchAdmins, | ||
fetchUser, | ||
fetchUsers, | ||
fetchSuggestionUsers, | ||
fetchCertificate, | ||
fetchCertificatesByUser, | ||
fetchCertificates, | ||
fetchAdminsAnalytics, | ||
fetchUsersAnalytics, | ||
fetchCertificatesAnalytics, | ||
fetchActivities, | ||
fetchEvents, | ||
fetchReports, | ||
postNewUser, | ||
postNewCertificate, | ||
postNewThirdPartyCertificate, | ||
postCertificateBulk, | ||
updateUser, | ||
updateCertificate, | ||
deleteUser, | ||
deleteCertificate, | ||
}; | ||
|
||
const requests = {login, validateToken, refreshToken, validateCertificate, changePassword, fetchAdminByUsername , fetchAdmins, fetchUser, fetchUsers, fetchSuggestionUsers, fetchCertificate, | ||
fetchCertificatesByUser, fetchCertificates, fetchAdminsAnalytics, fetchUsersAnalytics, fetchCertificatesAnalytics, fetchActivities, postNewUser, postNewCertificate, | ||
postNewThirdPartyCertificate, updateUser, updateCertificate, deleteUser, deleteCertificate } | ||
|
||
export default requests; |