UNPKG

datadirect

Version:
15 lines (14 loc) 428 B
import * as Endpoint from '../../../../Endpoint.js'; export function widget() { return (payload, base) => { // TODO filter widget payload if (!payload.contextValue) { throw new Error(`contextValue must be set (usually to the group or section ID)`); } return Endpoint.prepare({ payload, base, path: `/api/widget/WidgetGet/` }); }; }