Singletons

/api/singletons/get/{singletonname}

Get singleton data.

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

/api/singletons/listSingletons

Get all singletons

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