Regions

/api/regions/listRegions

Get all regions

fetch('/api/regions/listRegions?token=xxtokenxx')
    .then(regions => regions.json())
    .then(regions => console.log(regions));

/api/regions/get/{regionname}

Get rendered region template.

fetch('/api/regions/get/{regionname}?token=xxtokenxx')
    .then(region => data.text())
    .then(region => console.log(region));

/api/regions/data/{regionname}

Get form data as json.

fetch('/api/regions/data/{regionname}?token=xxtokenxx')
    .then(data => data.json())
    .then(data => console.log(data));