UNPKG

@lucidcms/core

Version:

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

1 lines 687 B
{"version":3,"file":"collections.routes.mjs","names":["getAll","getSingle"],"sources":["../../../../../../src/libs/http/routes/api/v1/collections.routes.ts"],"sourcesContent":["import { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../../../types/hono.js\";\nimport getAll from \"../../../controllers/collections/get-all.js\";\nimport getSingle from \"../../../controllers/collections/get-single.js\";\n\nconst collectionRoutes = new Hono<LucidHonoGeneric>()\n\t.get(\"/\", ...getAll)\n\t.get(\"/:key\", ...getSingle);\n\nexport default collectionRoutes;\n"],"mappings":"uJAKA,MAAM,EAAmB,IAAI,EAAuB,CAAC,CACnD,IAAI,IAAK,GAAGA,CAAM,CAAC,CACnB,IAAI,QAAS,GAAGC,CAAS"}