Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 2640f45

Browse files
authored
Merge pull request #17 from supabase/support-other-http-verbs
added support for PUT, PATCH, and DELETE
2 parents 9ffeaa9 + 56ad91f commit 2640f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ app.use(async (ctx: Context, next: () => Promise<unknown>) => {
9898
app.use(async (ctx: Context, next: () => Promise<unknown>) => {
9999
const { request, response } = ctx;
100100

101-
const supportedVerbs = ['POST', 'GET', 'OPTIONS'];
101+
const supportedVerbs = ['POST', 'GET','PUT', 'PATCH', 'DELETE', 'OPTIONS'];
102102
if (!(supportedVerbs.includes(request.method))) {
103103
console.error(`${request.method} not supported`);
104104
return ctx.throw(

0 commit comments

Comments
 (0)