Skip to content

Edge Functions are limited to method POST #104

Closed
supabase-community/functions-swift
#3
@Kalzem

Description

@Kalzem

Feature request

Is your feature request related to a problem? Please describe.

I believe Edge Functions should not be limited to POST methods.
There is an official example of a CRUD edge function.

I have a few functions that rely on GET / PUT methods.

Describe the solution you'd like

Add a parameter to struct FunctionInvokeOptions that would allow to choose the HTTP method from either an enum or a string.

Additional context

The only workaround I found as of today is to split an edge function that handles GET/PUT/POST/DELETE into 4 functions that ignore the HTTP method.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions