@nestjs/platform-fastify 11.0.13 → 11.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -425,6 +425,9 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
425
425
|
url: args[0],
|
|
426
426
|
handler: handlerRef,
|
|
427
427
|
};
|
|
428
|
+
if (this.instance.supportedMethods.indexOf(routerMethodKey) > -1) {
|
|
429
|
+
this.instance.addHttpMethod(routerMethodKey, { hasBody: true });
|
|
430
|
+
}
|
|
428
431
|
if (isVersioned || hasConstraints || hasConfig) {
|
|
429
432
|
const isPathAndRouteTuple = args.length === 2;
|
|
430
433
|
if (isPathAndRouteTuple) {
|