guoziyun 1 éve
szülő
commit
5f3537e48a
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      routes/proxy.js

+ 1 - 0
routes/proxy.js

@@ -4,6 +4,7 @@ const fetch = require('node-fetch');
 
 // 代理请求的中间件
 router.use('/', async (req, res) => {
+  console.log(`proxy req.url = ${req.url}`);
   const targetUrl = `http://color.jccytech.cn${req.url}`; // 替换为目标服务器的 URL
   const method = req.method;
   const headers = {