newsnow/scripts/refresh.ts

6 lines
168 B
TypeScript
Raw Normal View History

import { sources } from "../shared/sources"
2024-10-21 23:09:26 +08:00
Promise.all(Object.keys(sources).map(id =>
2024-11-05 00:04:35 +08:00
fetch(`https://newsnow.busiyi.world/api/s?id=${id}`),
2024-10-21 23:09:26 +08:00
)).catch(console.error)