hngx-org/Commanders-food-backend

๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ Get User Profile Controller Handler [CONTROLLER HANDLER]

Closed this issue ยท 1 comments

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.

Assign this to me