Files
RSSHub/lib/routes/sdu/extractor/index.ts
T
2024-04-04 20:28:45 +08:00

22 lines
545 B
TypeScript

import news from './wh/news';
import view from './view';
import sdrj from './sdrj';
import jwc from './wh/jwc';
const index = (link) => {
if (link.startsWith('https://xinwen.wh.sdu.edu.cn/')) {
return news(link);
}
if (link.startsWith('https://www.view.sdu.edu.cn/')) {
return view(link);
}
if (link.startsWith('https://www.sdrj.sdu.edu.cn/')) {
return sdrj(link);
}
if (link.startsWith('https://jwc.wh.sdu.edu.cn/')) {
return jwc(link);
}
return {};
};
export default index;