Files
RSSHub/lib/routes/discourse/utils.ts
T
wudifeixue c086c62acd fix(core): fix documentation link path and error message links (#15023)
* fix: all broken sponsor links

* fix: all broken deployment links

* fix: other broken links
2024-03-30 08:12:12 +00:00

11 lines
354 B
TypeScript

import { config } from '@/config';
function getConfig(ctx) {
if (!config.discourse.config[ctx.req.param('configId')]) {
throw new Error('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')];
}
export { getConfig };