I am seeing this on my http-functions.js file.
This is the code inside of that file
export async function use_myFunction(request) {
console.log(request.method) -> Returns OPTIONS
console.log(request.body) -> Returns {}
let options = {
"headers": {
"Content-Type": "application/json"
},
"body": {
"thing": true
}
}
return ok(options)
}
On the http-functions file an error says that I should be using “use” instead of “post”.