feat(route): utgd: adjust utgd apiUrl to new (#12894)

* Update timeline.js

* Update topic.js
This commit is contained in:
沨沄极客
2023-07-28 21:14:13 +08:00
committed by GitHub
parent 5373b5878b
commit e0800cf4a2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
ctx.cache.tryGet(`untag-${item.id}`, async () => {
const detailResponse = await got({
method: 'get',
url: `${rootUrl}/api/v2/pages/${item.id}/`,
url: `${rootUrl}/api/v2/article/${item.id}/`,
searchParams: {
fields: 'article_description,article_category(category_name),article_tag(tag_name)',
},
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = async (ctx) => {
ctx.cache.tryGet(`untag-${item.id}`, async () => {
const detailResponse = await got({
method: 'get',
url: `${rootUrl}/api/v2/pages/${item.id}/`,
url: `${rootUrl}/api/v2/article/${item.id}/`,
searchParams: {
fields: 'article_description',
},