MCPcopy Create free account
hub / github.com/RemoteState/nodejs-ecs / SayHelloEveryOne

Method SayHelloEveryOne

src/controller/usersController.ts:17–31  ·  view source on GitHub ↗
(req: Request, res: Response, next: NextFunction)

Source from the content-addressed store, hash-verified

15 }
16
17 public async SayHelloEveryOne(req: Request, res: Response, next: NextFunction) {
18 const body = req.body as SampleArrayRequestBody[];
19 try {
20 const updated = body.map((data) => {
21 data.name = 'Hello ' + data.name;
22 return data;
23 });
24 res.status(200).send({
25 status: 'success',
26 data: updated,
27 });
28 } catch (e) {
29 next(e);
30 }
31 }
32
33 public async GetAll(req: Request, res: Response, next: NextFunction) {
34 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected