@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 314 B
JavaScript
import e from"../../../utils/errors/lucid-api-error.mjs";import t from"../../../services/auth/csrf/verify-token.mjs";import{createMiddleware as n}from"hono/factory";const r=n(async(n,r)=>{let i=t(n);if(i.error)throw new e(i.error);return await r()});export{r as default};
//# sourceMappingURL=validate-csrf.mjs.map