The Web Modules API allows you to define functions in your backend code that can be called from your site's frontend code.

To use the Web Modules API, import the webMethod function and the Permissions enum from the wix-web-module module:

import { webMethod, Permissions } from 'wix-web-module';
javascript | Copy Code

Learn more about working with the Web Modules API.

Was this helpful?