4

There is an option to set route config in Fastify like:

https://www.fastify.io/docs/latest/Routes/#config

fastify.get('/en', { config: { output: 'hello world!' } }, handler)

but is there an option to set config when using NestJS with Fastify?

  // where to put config for route 
  @Post('/en')
  async createResource(
    @Body() payload: any,
  ): Promise<void> {}
mardok
  • 2,135
  • 2
  • 23
  • 37

0 Answers0