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.05 kB
{"version":3,"file":"ai.routes.mjs","names":["aiController"],"sources":["../../../../../../src/libs/http/routes/api/v1/ai.routes.ts"],"sourcesContent":["import { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../../../types/hono.js\";\nimport aiController from \"../../../controllers/ai/index.js\";\n\nconst aiRoutes = new Hono<LucidHonoGeneric>()\n\t.get(\"/usage/chart\", ...aiController.getUsageChart)\n\t.get(\"/usage\", ...aiController.getUsage)\n\t.post(\"/custom-field\", ...aiController.customFieldInputGenerate)\n\t.post(\"/media-image\", ...aiController.mediaImageGenerate)\n\t.post(\"/media-image/:requestId\", ...aiController.mediaImageCompletion)\n\t.post(\"/media-alt\", ...aiController.mediaAltGenerate);\n\nexport default aiRoutes;\n"],"mappings":"6EAIA,MAAM,EAAW,IAAI,EAAuB,CAAC,CAC3C,IAAI,eAAgB,GAAGA,EAAa,aAAa,CAAC,CAClD,IAAI,SAAU,GAAGA,EAAa,QAAQ,CAAC,CACvC,KAAK,gBAAiB,GAAGA,EAAa,wBAAwB,CAAC,CAC/D,KAAK,eAAgB,GAAGA,EAAa,kBAAkB,CAAC,CACxD,KAAK,0BAA2B,GAAGA,EAAa,oBAAoB,CAAC,CACrE,KAAK,aAAc,GAAGA,EAAa,gBAAgB"}