rsshub
Version:
Make RSS Great Again!
45 lines (43 loc) • 1.12 kB
JavaScript
import "./esm-shims-CzJ_djXG.mjs";
import "./config-C37vj7VH.mjs";
import "./dist-BInvbO1W.mjs";
import "./logger-Czu8UMNd.mjs";
import "./ofetch-BIyrKU3Y.mjs";
import "./cache-Bo__VnGm.mjs";
import { n as fetchArticles, t as baseUrl } from "./utils-D2khgQj_.mjs";
//#region lib/routes/capitalmind/insights.ts
const route = {
path: "/insights",
example: "/capitalmind/insights",
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{
source: ["capitalmind.in/insights"],
target: "/insights"
}],
name: "Insights",
maintainers: ["Rjnishant530"],
handler
};
async function handler() {
const items = await fetchArticles("insights");
return {
title: "Capitalmind Insights",
link: `${baseUrl}/insights`,
description: "Financial insights and analysis from Capitalmind",
language: "en",
item: items,
allowEmpty: false,
image: `${baseUrl}/favicons/favicon.ico`,
icon: `${baseUrl}/favicons/favicon.ico`,
logo: `${baseUrl}/favicons/favicon.ico`
};
}
//#endregion
export { route };