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

Function getAllUsers

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

Source from the content-addressed store, hash-verified

3const { hashPassword } = require("../helpers/hashPassword");
4
5const getAllUsers = async (req, res) => {
6 const results = await userService.getAllUsers();
7 res.status(200).json(results);
8};
9
10const createUser = async (req, res) => {
11 const { username, password, email, fullname } = req.body;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected