Introduction

The Web Modules API allows you to define web methods in your backend code that can be called from your site's frontend code. In order to call the function from the frontend, you need to define the necessary permissions.

With web modules you can also cache the return values of web methods. This means you can temporarily store the return values of your backend functions on Wix's infrastructure for a specified period of time. Web method caching reduces response times, decreases server load, and enhances the overall user experience of site visitors by providing quicker access to previously generated data. Learn more about web method caching.

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

Copy

Learn more about working with the web modules.

Did this help?