Nacho Ruiz Martin
06/01/2024, 12:38 PMPOST , right?
The JS SDK has a method property in invoke : https://supabase.com/docs/reference/javascript/functions-invoke.
This is needed in case the edge function has some routing inside.Jan
06/01/2024, 12:46 PMPOST yes, but as you can provide a whole HttpRequestBuilder , you can just override the method:
supabase.functions.invoke("test") {
method = HttpMethod.Delete
}Nacho Ruiz Martin
06/01/2024, 12:46 PM<http://api.post|api.post>, thanks!Jan
06/01/2024, 12:48 PMmethod or custom content types as you have the most freedom with the Ktor request builder.Nacho Ruiz Martin
06/01/2024, 12:48 PM