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:
006lp
2025-05-22 00:55:32 +08:00
committed by GitHub
parent 4a7376332f
commit 753729134a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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 - 每周速报',
+1 -1
View File
@@ -21,7 +21,7 @@ export const route: Route = {
supportScihub: false,
},
name: 'FINAL FANTASY XIV (The Lodestone)',
maintainers: ['chengyuhui'],
maintainers: ['kmod-midori'],
handler,
description: `Region