I’m trying to define a webMethod function in web.js file in Wix studio backend folder.
I’ve tried to replace the anonymous function and put a function name in the second parameter of webMethod? for some reason this does not work, is there a way to do it?
For example:
export function multiplyF(a,b){
return a*b
}
export const multiply = webMethod(Permissions.Anyone, multiplyF);