UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 439 B
import{copy as e}from"../../../libs/i18n/copy.mjs";import{tenantAccessAllowed as t}from"../../../utils/helpers/tenants.mjs";const n=async(n,r)=>{let i=n.config.collections?.find(e=>e.key===r.key);return!i||!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=check-collection.mjs.map