๐จโ๐ฆโ๐ฆ Get User Profile Controller Handler [CONTROLLER HANDLER]
Closed this issue ยท 1 comments
Benrobo commented
Controller handler name: getProfileInfo
Location: Inside the user.controller.js
file
Your controller handler should do the following:
- Use the
req?.user
passed within the auth middleware. - Grab the id from
req.user
and fetch necessary information from the user table. - Send the client response payload as seen within on the notion endpoint documentation
If the file doesn't exists yet, create it with the same format other controller file uses.
Uzo-Felix commented
Assign this to me