MCPcopy
hub / github.com/fastify/fastify / addRandomRoute

Function addRandomRoute

test/schema-feature.test.js:1463–1468  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

1461})
1462
1463function addRandomRoute (server) {
1464 server.post(`/${Math.random()}`,
1465 { schema: { body: { type: 'object' } } },
1466 (req, reply) => reply.send()
1467 )
1468}
1469
1470test('Add schema order should not break the startup', (t, testDone) => {
1471 t.plan(1)

Callers 1

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected