From 5b63365423edd84417fdaa68ce0cbeb956cf7538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=B9=8F?= <75709526+wp0403@users.noreply.github.com> Date: Tue, 11 Jul 2023 17:26:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/{douyin.js => douyin2.js} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename routes/{douyin.js => douyin2.js} (96%) diff --git a/routes/douyin.js b/routes/douyin2.js similarity index 96% rename from routes/douyin.js rename to routes/douyin2.js index 1b41f77..c9ba690 100644 --- a/routes/douyin.js +++ b/routes/douyin2.js @@ -4,7 +4,7 @@ * @Author: WangPeng * @Date: 2023-07-10 16:56:01 * @LastEditors: WangPeng - * @LastEditTime: 2023-07-11 16:33:56 + * @LastEditTime: 2023-07-11 17:26:05 */ const Router = require("koa-router"); const douyinRouter = new Router(); @@ -45,7 +45,7 @@ const getData = (data) => { }; // 抖音热榜 -douyinRouter.get("/douyin", async (ctx) => { +douyinRouter.get("/douyin2", async (ctx) => { console.log("获取抖音热榜"); try { // 从缓存中获取数据 @@ -83,7 +83,7 @@ douyinRouter.get("/douyin", async (ctx) => { }); // 抖音热榜 - 获取最新数据 -douyinRouter.get("/douyin/new", async (ctx) => { +douyinRouter.get("/douyin2/new", async (ctx) => { console.log("获取抖音热榜 - 最新数据"); try { // 从服务器拉取最新数据