Load Javascript resource
Loads a Javascript resource from the etc/scripts directory. This script will be found at the file location as defined by the app.docs_root configitem in the application.yml file.
Example API call
/lcapi?target=resource&action=script&file_name=cvPortal.js
Parameters
| Parameter | Description |
|---|---|
target | resource |
action | script |
file_name | The full name of the Javascript file, such as cvPortal.js. |
Returns
- On success
- The text of the Javascript file.
- On failure
- A message indicating that the requested JavaScript file was not found.