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 12b0892 + 623e27d commit a82e40aCopy full SHA for a82e40a
packages/platform-fastify/adapters/fastify-adapter.ts
@@ -762,7 +762,7 @@ export class FastifyAdapter<
762
handler: handlerRef,
763
};
764
765
- if (this.instance.supportedMethods.indexOf(routerMethodKey) > -1) {
+ if (this.instance.supportedMethods.indexOf(routerMethodKey) === -1) {
766
this.instance.addHttpMethod(routerMethodKey, { hasBody: true });
767
}
768
0 commit comments