UNPKG

@lucidcms/core

Version:

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

1 lines 1.61 kB
{"version":3,"file":"client-integrations.routes.mjs","names":["createSingle","getAll","getScopes","getSingle","deleteSingle","updateSingle","regenerateKeys"],"sources":["../../../../../../src/libs/http/routes/api/v1/client-integrations.routes.ts"],"sourcesContent":["import { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../../../types/hono.js\";\nimport createSingle from \"../../../controllers/client-integrations/create-single.js\";\nimport deleteSingle from \"../../../controllers/client-integrations/delete-single.js\";\nimport getAll from \"../../../controllers/client-integrations/get-all.js\";\nimport getScopes from \"../../../controllers/client-integrations/get-scopes.js\";\nimport getSingle from \"../../../controllers/client-integrations/get-single.js\";\nimport regenerateKeys from \"../../../controllers/client-integrations/regenerate-keys.js\";\nimport updateSingle from \"../../../controllers/client-integrations/update-single.js\";\n\nconst clientIntegrationRoutes = new Hono<LucidHonoGeneric>()\n\t.post(\"/\", ...createSingle)\n\t.get(\"/\", ...getAll)\n\t.get(\"/scopes\", ...getScopes)\n\t.get(\"/:id\", ...getSingle)\n\t.delete(\"/:id\", ...deleteSingle)\n\t.patch(\"/:id\", ...updateSingle)\n\t.post(\"/:id/regenerate-keys\", ...regenerateKeys);\n\nexport default clientIntegrationRoutes;\n"],"mappings":"whBAUA,MAAM,EAA0B,IAAI,EAAuB,CAAC,CAC1D,KAAK,IAAK,GAAGA,CAAY,CAAC,CAC1B,IAAI,IAAK,GAAGC,CAAM,CAAC,CACnB,IAAI,UAAW,GAAGC,CAAS,CAAC,CAC5B,IAAI,OAAQ,GAAGC,CAAS,CAAC,CACzB,OAAO,OAAQ,GAAGC,CAAY,CAAC,CAC/B,MAAM,OAAQ,GAAGC,CAAY,CAAC,CAC9B,KAAK,uBAAwB,GAAGC,CAAc"}