fix(route/cngal): update API endpoint in CnGal (#19164)
* fix: update API endpoint in GetWeeklyNewsOverview * fix: update API endpoint to follow redirect in GetEntryView * docs: fix maintainer id ---------
This commit is contained in:
@@ -25,14 +25,14 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '制作者 / 游戏新闻',
|
||||
maintainers: ['chengyuhui'],
|
||||
maintainers: ['kmod-midori'],
|
||||
handler,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const entryId = ctx.req.param('id');
|
||||
|
||||
const response = await got(`https://www.cngal.org/api/entries/GetEntryView/${entryId}`);
|
||||
const response = await got(`https://api.cngal.org/api/entries/GetEntryView/${entryId}`);
|
||||
|
||||
const data = response.data;
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ export const route: Route = {
|
||||
},
|
||||
],
|
||||
name: '每周速报',
|
||||
maintainers: ['chengyuhui'],
|
||||
maintainers: ['kmod-midori'],
|
||||
handler,
|
||||
url: 'www.cngal.org/',
|
||||
};
|
||||
|
||||
async function handler() {
|
||||
const response = await got('https://www.cngal.org/api/news/GetWeeklyNewsOverview');
|
||||
const response = await got('https://api.cngal.org/api/news/GetWeeklyNewsOverview');
|
||||
|
||||
return {
|
||||
title: 'CnGal - 每周速报',
|
||||
|
||||
@@ -21,7 +21,7 @@ export const route: Route = {
|
||||
supportScihub: false,
|
||||
},
|
||||
name: 'FINAL FANTASY XIV (The Lodestone)',
|
||||
maintainers: ['chengyuhui'],
|
||||
maintainers: ['kmod-midori'],
|
||||
handler,
|
||||
description: `Region
|
||||
|
||||
|
||||
Reference in New Issue
Block a user