You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A route to promote the user to admin
A request header by the name 'admin_code" needs to be present with a password that will promote a user to admin access
Assume the pasword is "admin"
If the correct password is inputted, promote the user to Admin and return an appropriate JSON message
If the password is incorrect , return a JSON message informing the user that he has been denied access
The text was updated successfully, but these errors were encountered:
A route to promote the user to admin
A request header by the name 'admin_code" needs to be present with a password that will promote a user to admin access
Assume the pasword is "admin"
If the correct password is inputted, promote the user to Admin and return an appropriate JSON message
If the password is incorrect , return a JSON message informing the user that he has been denied access
The text was updated successfully, but these errors were encountered: