@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 601 B
JavaScript
import e from"../../../services/documents/client/get-single.mjs";import{normalizeDocumentQuery as t,runToolkitService as n,withToolkitTenant as r}from"../utils.mjs";const i=async(i,a)=>{let o=r(i,a);return n(()=>e(o,{collectionKey:a.collectionKey,versionType:a.version,preview:a.preview??void 0,query:t(a.query)}),{name:{key:`core.toolkit.documents.get.single.error.name`,defaultMessage:`Documents Toolkit Error`},message:{key:`core.toolkit.documents.get.single.error.message`,defaultMessage:`Lucid toolkit could not fetch a document.`}})};export{i as default};
//# sourceMappingURL=get-single.mjs.map