Skip to content

Commit

Permalink
405s
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Dec 9, 2024
1 parent 7fdb622 commit 9763437
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export default {
* @returns {Promise<Response>}
*/
async fetch(request, env, pctx) {
if (request.method !== 'GET') {
return errorResponse(405, 'method not allowed');
}

const ctx = makeContext(pctx, request, env);

try {
Expand Down

0 comments on commit 9763437

Please sign in to comment.