Hi there,
I follow the tutorials
support.wix. com/en/article/velo-exposing-a-site-api-with-http-functions#endpoints and www.youtube. com/watch?v=4yCBplV3MPQ ,
but cannot get my function work.
Here is the simple test code
import { ok, notFound, serverError } from 'wix-http-functions'
import wixData from 'wix-data';
export function get_function1(request) {
console.log("hello");
let options = {
"headers": {
"Content-Type": "application/json"
}
};
options.body = {
"request": request
};
return ok(options);
}
Please help. Thanks.
Jason