await fetch('https://core.sitemesh.com/v1/storage/get,
{
body: JSON.stringify({
StoragePath: '#PATH-TO-RESOURCE#',
}),
method: 'POST',
headers: {
'Content-Type': 'application/json',
'authorization': 'bearer #YOUR-TOKEN#',
}
}
);
await fetch('https://core.sitemesh.com/v1/storage/save',
{
body: JSON.stringify({
StoragePath: '#PATH-TO-STORAGE#',
StorageData: '#DATA-AS-BASE64#',
StoragePublic: false | true,
}),
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': '#API-KEY#',
}
}
);