We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc20288 + 0a86ba0 commit d405dd4Copy full SHA for d405dd4
packages/platform-fastify/adapters/fastify-adapter.ts
@@ -762,6 +762,10 @@ export class FastifyAdapter<
762
handler: handlerRef,
763
};
764
765
+ if (this.instance.supportedMethods.indexOf(routerMethodKey) > -1) {
766
+ this.instance.addHttpMethod(routerMethodKey, { hasBody: true });
767
+ }
768
+
769
if (isVersioned || hasConstraints || hasConfig) {
770
const isPathAndRouteTuple = args.length === 2;
771
if (isPathAndRouteTuple) {
0 commit comments