fix(route/bestblogs): API endpoint failure (#21753)

This commit is contained in:
occam-7
2026-04-16 21:09:39 +08:00
committed by GitHub
parent 9d5f61f9a2
commit 1d2519f496
+5 -5
View File
@@ -23,12 +23,12 @@ export const route: Route = {
async function handler(ctx) {
const pageSize = Number.parseInt(ctx.req.query('limit') ?? '10', 10);
const response = await ofetch('https://api.bestblogs.dev/api/newsletter/list', {
method: 'POST',
body: {
currentPage: 1,
const response = await ofetch('https://www.bestblogs.dev/api/proxy/newsletters', {
method: 'GET',
query: {
page: 1,
pageSize,
userLanguage: 'zh',
language: 'zh',
},
});