(req: Request, res: Response, next: NextFunction)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected