@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 1.09 kB
Source Map (JSON)
{"version":3,"file":"share.routes.mjs","names":[],"sources":["../../../../../../src/libs/http/routes/api/v1/share.routes.ts"],"sourcesContent":["import { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../../../types/hono.js\";\nimport authorizeStreamController from \"../../../controllers/share/authorize-stream.js\";\nimport getShareAccessController from \"../../../controllers/share/get-share-access.js\";\nimport requestDownloadController from \"../../../controllers/share/request-download.js\";\nimport streamMediaController from \"../../../controllers/share/stream-media.js\";\n\nconst shareRoutes = new Hono<LucidHonoGeneric>()\n\t.get(\"/:token\", ...getShareAccessController)\n\t.get(\"/:token/stream\", ...streamMediaController)\n\t.post(\"/:token/authorize\", ...authorizeStreamController)\n\t.post(\"/:token/download\", ...requestDownloadController);\n\nexport default shareRoutes;\n"],"mappings":"oRAOA,MAAM,EAAc,IAAI,EAAuB,CAAC,CAC9C,IAAI,UAAW,GAAG,CAAwB,CAAC,CAC3C,IAAI,iBAAkB,GAAG,CAAqB,CAAC,CAC/C,KAAK,oBAAqB,GAAG,CAAyB,CAAC,CACvD,KAAK,mBAAoB,GAAG,CAAyB"}