datadirect
Version:
Types for working with Blackbaud's front-end APIs
15 lines (14 loc) • 425 B
JavaScript
import * as Endpoint from '../../../../Endpoint.js';
export function rssReader() {
return (payload, base) => {
// TODO filter rssReader payload
if (!payload.contextValue) {
throw new Error(`contextValue must be set (usually to section.Id)`);
}
return Endpoint.prepare({
payload,
base,
path: `/api/rssreader/forsection/`
});
};
}