@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 377 B
JavaScript
import{createFactory as e}from"hono/factory";const t=e().createHandlers(async e=>{e.header(`Cache-Control`,`no-store`);try{return await e.get(`database`).client.selectNoFrom(e=>e.val(1).as(`health`)).executeTakeFirstOrThrow(),e.status(200),e.json({status:`ok`})}catch{return e.status(503),e.json({status:`unhealthy`})}});export{t as default};
//# sourceMappingURL=index.mjs.map