MCPcopy Create free account
hub / github.com/dhatGuy/PERN-Store / getUserProfile

Function getUserProfile

server/controllers/users.controller.js:40–46  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

38};
39
40const getUserProfile = async (req, res) => {
41 const { id } = req.user;
42
43 const user = await userService.getUserById(id);
44
45 return res.status(200).json(user);
46};
47
48const updateUser = async (req, res) => {
49 const { username, email, fullname, address, city, state, country } = req.body;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected