Implemented API endpoint to return current users info
Implemented GET /api/v1/@apostrophecms/login/whoami route such that it returns the details of the current user.
I haven't really checked out the code yet, but can you add two things to this PR:
- Update the CHANGELOG to reflect the changes being added - this should be added to the
## UNRELEASEDsection. - Add tests to show correct functionality. Let me know if you need help with either of these and thanks again!
Great stuff. Please run
npx eslint . --fixto update the code style to match probably 100% of our guidelines without manual effort. Also please add it to the changelog.
I have added it to the changelog as well as added test cases as instructed.
I have made all the requested changes, kindly review them. Thank you!
@sombitganguly are you interested in finishing your tests so this can be merged?
@sombitganguly are you interested in finishing your tests so this can be merged?
absolutely, and i apologize for my sudden disappearance i got busy with some stuff.
No worries, looking forward to it!