import { config } from '@/config'; import ConfigNotFoundError from '@/errors/types/config-not-found'; function getConfig(ctx) { if (!config.discourse.config[ctx.req.param('configId')]) { throw new ConfigNotFoundError('Discourse RSS is disabled due to the lack of relevant config'); } return config.discourse.config[ctx.req.param('configId')]; } export { getConfig };