Open amit-ib opened 1 year ago
Hi @amit-ib
I have created 2 new endpoints
user-roles
to get all user roles.users
to get all users (only accessible by super admin and admin).Also updated the response of todos, now response will look like following.
{
"total": 1,
"pending": 0,
"inProgress": 1,
"completed": 0,
"archived": 0,
"todos": []
}
let me know if any changes are required.
Thanks
Please update /login API to get "userRole" as new key item in json and its value is going to be a number
1 = Super Admin 2= Admin 3 = User