Describe the bug
Profile route is not flexible for giving responses differently for admin and users. When an admin sends a request to profile route it should return information regarding it's users also, but it is giving only email, name, user_id, timestamps.
To Reproduce
Steps to reproduce the behavior:
Create a account for admin role and login
Send a request to Profile route
You will not find information regarding your users
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Windows 10
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug Profile route is not flexible for giving responses differently for admin and users. When an admin sends a request to profile route it should return information regarding it's users also, but it is giving only email, name, user_id, timestamps.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.