Hello,
I have several widgets the reference rest end point URL's. I would like to be able to use a config file in the root folder of the WAB site to store the path to these URL's. I have found the config.json file in the root directory. Within the config.json file I have changed the "config": path from "configs/..." path to the root, ie "config": "mycustom.json".
mycustom.json has a reference to a rest end point
{
"myUrl": "'//myportal.com/server/rest/services/SiteName/FeatureServer/SomeNumber'",
additional urls.....
}
Now how do I access mycustom.json within the individual widget.js files?