@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 331 B
JavaScript
import{copy as e}from"../i18n/copy.mjs";import{getAlertConfig as t}from"./alert-map.mjs";const n=async(n,r)=>{let i=t(r.key);return i?i.service(n,r):{error:{type:`basic`,message:e(`server:core.alerts.unknown.key.message`,{data:{key:r.key}}),status:400},data:void 0}};export{n as default};
//# sourceMappingURL=execute-alert.mjs.map