Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
...workerData?.axiosRequestConfig,
})
return {
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
text: response.data,
}
},
application.all('/api/echo', (req: Request, res: Response) => {
ExpressWorker.requestHandlerPool
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
.execute({ data: req.body }, 'echo')
.then(response => {
return res.send(response.data).end()
expressApp.all('/api/echo', (req: Request, res: Response) => {
requestHandlerPool
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
.execute({ body: req.body }, 'echo')
.then(response => {
return res.send(response.body).end()