Added verifyAdmin middleware. Implemented getAllUsers route
This commit is contained in:
1 parent
ad76da14c9
commit
8e6cd0de71
5 files changed
+86
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user