IEEE-VIT / REST_API

Welcome to Source Sprint's back-end repository! A beginner friendly repository to help users learn and contribute towards open source
MIT License
1 stars 8 forks source link

/user/<user_id> -- Promoting the user to Admin #4

Open varun10sudhir opened 1 year ago

varun10sudhir commented 1 year ago

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