UNPKG

@lucidcms/core

Version:

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

1 lines 884 B
{"version":3,"file":"settings.routes.mjs","names":["getSettings","updateSystemAlerts","clearKV"],"sources":["../../../../../../src/libs/http/routes/api/v1/settings.routes.ts"],"sourcesContent":["import { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../../../types/hono.js\";\nimport clearKV from \"../../../controllers/settings/clear-kv.js\";\nimport getSettings from \"../../../controllers/settings/get-settings.js\";\nimport updateSystemAlerts from \"../../../controllers/settings/update-system-alerts.js\";\n\nconst settingsRoutes = new Hono<LucidHonoGeneric>()\n\t.get(\"/\", ...getSettings)\n\t.patch(\"/system-alerts\", ...updateSystemAlerts)\n\t.delete(\"/kv\", ...clearKV);\n\nexport default settingsRoutes;\n"],"mappings":"0NAMA,MAAM,EAAiB,IAAI,EAAuB,CAAC,CACjD,IAAI,IAAK,GAAGA,CAAW,CAAC,CACxB,MAAM,iBAAkB,GAAGC,CAAkB,CAAC,CAC9C,OAAO,MAAO,GAAGC,CAAO"}