Because the API functions are not cached on the server an extra set of functions are available when running JS from the API folder. These are here to make it possible to create dynamic web applications that your static frontend (always cached) can access data dynamically from.
This is according to PWA standards.
The extra functions available are:
- Write data to docly
- Get current user information
- Call external API's
From the API you can read values for querystring from the "query" object and "form" object for posted form values.
See functions marked with API only in the JS reference: