diff --git a/lib/routes/mittrchina/index.ts b/lib/routes/mittrchina/index.ts index 2fcfb22fe87f1b..fa2d8d14d1c7a4 100644 --- a/lib/routes/mittrchina/index.ts +++ b/lib/routes/mittrchina/index.ts @@ -52,7 +52,7 @@ async function handler(ctx) { const { type = 'index' } = ctx.req.param(); const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 10; - const link = `https://apii.mittrchina.com${typeMap[type].apiPath}`; + const link = `https://apii.web.mittrchina.com${typeMap[type].apiPath}`; const { data: response } = type === 'breaking' ? await got.post(link, { @@ -95,7 +95,7 @@ async function handler(ctx) { cache.tryGet(item.link, async () => { const { data: { data: details }, - } = await got(`https://apii.mittrchina.com/information/details?id=${item.id}`); + } = await got(`https://apii.web.mittrchina.com/information/details?id=${item.id}`); item.description = details.content;