From 9cbdf9093c9975a4b83c75775772ac3f8c43f6a9 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Sun, 27 Aug 2023 00:36:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E6=99=9A=E7=82=B9=E6=8A=A5?= =?UTF-8?q?=E9=81=93=20(#13129)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/latepost/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/latepost/index.js b/lib/v2/latepost/index.js index 4329f04bef9cc3..1746fe87dd83f9 100644 --- a/lib/v2/latepost/index.js +++ b/lib/v2/latepost/index.js @@ -34,7 +34,7 @@ module.exports = async (ctx) => { const apiColumnUrl = new URL('site/get-column', rootUrl).href; const apiCommentUrl = new URL('news/get-comment', rootUrl).href; - const apiUrl = new URL(proma ? 'site/index' : 'news/get-news-data', rootUrl).href; + const apiUrl = new URL(proma ? 'news/get-news-data' : 'site/index', rootUrl).href; const { data: columnResponse } = await got(apiColumnUrl); const columns = arrayToDictionary(columnResponse?.data ?? []);