UNPKG

@nestjs/platform-fastify

Version:

Run NestJS on Fastify: the HTTP adapter with Fastify's plugins, JSON schemas and serialization.

9 lines (8 loc) • 313 B
import { SetMetadata } from '@nestjs/common'; import { FASTIFY_ROUTE_CONFIG_METADATA } from '../constants.js'; /** * @publicApi * * @param config See {@link https://fastify.dev/docs/latest/Reference/Routes/#config} */ export const RouteConfig = (config) => SetMetadata(FASTIFY_ROUTE_CONFIG_METADATA, config);