We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bc7b4f commit 57495adCopy full SHA for 57495ad
index.js
@@ -1,8 +1,8 @@
1
'use strict'
2
3
const fp = require('fastify-plugin')
4
-
5
const defaultPayload = { error: 'Method not allowed' }
+
6
async function fastifyGetOnly (
7
fastify,
8
{ httpStatusCode = 405, errorPayload = defaultPayload }
0 commit comments