Added verifyAdmin middleware. Implemented getAllUsers route

This commit is contained in:
Alex Holliday committed 2024-07-22 11:49:22 -07:00
1 parent ad76da14c9
commit 8e6cd0de71
5 files changed
+86

No files matched your search

+1
View File
@@ -2,6 +2,7 @@ const errorMessages = {
// General Errors:
FRIENDLY_ERROR: "Something went wrong...",
UNKNOWN_ERROR: "An unknown error occurred",
// Auth Controller
UNAUTHORIZED: "Unauthorized access",
AUTH_ADMIN_EXISTS: "Admin already exists",