The Web Modules API allows you to define functions in your backend code that can be called from your site's frontend code. In order to call the function from the frontened, you need to define the necessary permissions.
To use the Web Modules API, import the webMethod
function and the Permissions
enum from the wix-web-module
module:
1
Learn more about working with the Web Modules API.