(req, res)
| 38 | }; |
| 39 | |
| 40 | const 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 | |
| 48 | const updateUser = async (req, res) => { |
| 49 | const { username, email, fullname, address, city, state, country } = req.body; |
nothing calls this directly
no outgoing calls
no test coverage detected