@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 894 B
Source Map (JSON)
{"version":3,"file":"run-http-extensions.mjs","names":[],"sources":["../../../../src/libs/http/utils/run-http-extensions.ts"],"sourcesContent":["import type { Hono } from \"hono\";\nimport type { LucidHonoGeneric } from \"../../../types/hono.js\";\nimport type { Config } from \"../../../types.js\";\nimport type { HttpExtension, HttpExtensionPriority } from \"../types.js\";\n\nconst runHttpExtensions = async (props: {\n\textensions: HttpExtension[];\n\tpriority: HttpExtensionPriority;\n\tapp: Hono<LucidHonoGeneric>;\n\tconfig: Config;\n}) => {\n\tfor (const extension of props.extensions) {\n\t\tif (extension.priority === props.priority) {\n\t\t\tawait extension.register(props.app, props.config);\n\t\t}\n\t}\n};\n\nexport default runHttpExtensions;\n"],"mappings":"AAKA,MAAM,EAAoB,KAAO,IAK3B,CACL,IAAK,IAAM,KAAa,EAAM,WACzB,EAAU,WAAa,EAAM,UAChC,MAAM,EAAU,SAAS,EAAM,IAAK,EAAM,MAAM,CAGnD"}