UNPKG

@directus/sdk

Version:

Directus JavaScript SDK

2 lines 327 B
const e=require(`../../utils/throw-if-empty.cjs`),t=e=>()=>({path:`/notifications`,params:e??{},method:`GET`}),n=(t,n)=>()=>(e.throwIfEmpty(String(t),`Key cannot be empty`),{path:`/notifications/${t}`,params:n??{},method:`GET`});exports.readNotification=n,exports.readNotifications=t; //# sourceMappingURL=notifications.cjs.map