WebAssetCore (WAC)
The WebAssetCore (WAC) in PingoJS is a central module for processing CSS, JavaScript, and API requests. It provides various functions to efficiently manage and access different sources and assets.
Functions of the WebAssetCore
- CSS Processing: Load and manage CSS files.
- JavaScript Processing: Embed and execute JavaScript files.
- API Requests (PHP Scripts): Process API requests for addons.
caution
Important Notes
Some requests require a successful login for security purposes, ensuring only authorized users access certain resources.
The WebAssetCore simplifies the development and management of web applications. Accessing the /wac/ endpoint allows interaction with the WebAssetCore module.
Example:
https://example.com/wac/ad/myaddon/src/js/index.js
WebAssetCore Endpoint
Backend Aliases
/pingo/work/dist/js/
/wac/dj/...
/pingo/work/dist/css/
/wac/ds/...
/pingo/work/backend/<addon-key>/
/wac/ad/<addon-key>/...
External addons can also use this link dir: /vendor/<addon-key>/
/wac/fa/<site-identifier>
Retrieve the favicon.ico from this site-identifier.
(var) Bootstrap, Copper and Modules
Bootstrap
/var/bootstrap/dist/
/wsc/bs/...
Copper
/var/copper/dist/
/wsc/cu/...
Modules
/var/modules/
/wac/mu/...
Add-on Public Scripts
/pingo/work/backend/<addon-key>/
/add-on/pub/<addon-key>/...
/pingo/work/backend/<addon-key>/main.php
/add-on/main/<addon-key>
Query the main.php function of an addon.
robots.txt
/public/robot/robots.txt
/robots.txt