.catch(emptyFunction)
})
+expressApp.get('/api/factorial/:number', (req: Request, res: Response) => {
+ const { number } = req.params
+ requestHandlerPool
+ .execute({ body: { number } }, 'factorial')
+ .then(response => {
+ return res.send(response.body).end()
+ })
+ .catch(emptyFunction)
+})
+
try {
expressApp.listen(port, () => {
console.info(