repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-worker_threads
/
src
/
main.ts
diff --git
a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts
b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts
index f1271c6e13566ae1b80067a178579b9a3190cb6e..cc647a0fd2a707916999b6521096e298f872837d 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts
+++ b/
examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts
@@
-28,13
+28,13
@@
await fastify.register(fastifyPoolifier, {
}
})
}
})
-fastify.all('/api/echo', async
(request)
=> {
+fastify.all('/api/echo', async
request
=> {
return (await fastify.execute({ body: request.body }, 'echo')).body
})
fastify.get<{
Params: { number: number }
return (await fastify.execute({ body: request.body }, 'echo')).body
})
fastify.get<{
Params: { number: number }
-}>('/api/factorial/:number', async
(request)
=> {
+}>('/api/factorial/:number', async
request
=> {
const { number } = request.params
return (await fastify.execute({ body: { number } }, 'factorial')).body
})
const { number } = request.params
return (await fastify.execute({ body: { number } }, 'factorial')).body
})