MCPcopy Create free account
hub / github.com/fastify/fastify / echoBody

Function echoBody

test/schema-feature.test.js:13–13  ·  view source on GitHub ↗
(req, reply)

Source from the content-addressed store, hash-verified

11
12const echoParams = (req, reply) => { reply.send(req.params) }
13const echoBody = (req, reply) => { reply.send(req.body) }
14
15 ;['addSchema', 'getSchema', 'getSchemas', 'setValidatorCompiler', 'setSerializerCompiler'].forEach(f => {
16 test(`Should expose ${f} function`, t => {

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected