UNPKG

rsshub

Version:
11 lines (9 loc) 509 B
import { t as config } from "./config-C37vj7VH.mjs"; import { t as config_not_found_default } from "./config-not-found-Dyp3RlZZ.mjs"; //#region lib/routes/discourse/utils.ts function getConfig(ctx) { if (!config.discourse.config[ctx.req.param("configId")]) throw new config_not_found_default("Discourse RSS is disabled due to the lack of <a href=\"https://docs.rsshub.app/deploy/\">relevant config</a>"); return config.discourse.config[ctx.req.param("configId")]; } //#endregion export { getConfig as t };