POST Request : 'use_myFunction' not found

Question:
Using postman to make a POST request to a function in velo api, the returned status code is always 404 and in console is written this log:
“[“Error loading function from web module backend/http-functions.js: function ‘use_myFunction’ not found”]”.
This only happens when the request is of type GET.

Product:
Wix Editor

Can you add your the code from the http-functions.js file to the backend?

it’s quite simple, it’s just an example:
export function post_myFunction(request) {
return ok();
}

this error only appears if i made the request with postman.

To request “Get”, you need to create get_myFunction

Hi, I got similar errors with my “post” request to Wix HTTP functions. What I found out is if I make the request with method “POST”, Wix won’t recognize it and converts it to a “use” request, but there is no “use_myFunction()” defined and an error is thrown. If I use method “post” in lower case in my request, it just works.

I know it’s strange, and I am not sure if that is also you case, but it doesn’t hurt to try. In my case, I am still trying to figure out if that is really(?!) how Wix works, or I did something wrong…