@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 452 B
JavaScript
import{copy as e}from"../../libs/i18n/copy.mjs";import{tenantAccessAllowed as t}from"../../utils/helpers/tenants.mjs";const n=(n,r)=>{let i=r.instance??n.config.collections?.find(e=>e.key===r.key);return i===void 0||!t(i.getData.tenants,n.request.tenantKey)?{error:{type:`basic`,message:e(`server:core.collections.not.found.message`),status:404},data:void 0}:{error:void 0,data:i}};export{n as default};
//# sourceMappingURL=get-single-instance.mjs.map