guoziyun 1 rok pred
rodič
commit
b2002b21d1
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      routes/proxy.js

+ 2 - 0
routes/proxy.js

@@ -7,6 +7,8 @@ const config = require('../config/app');
 router.use('/', async (req, res) => {
   console.log(`proxy req.url = ${req.url}`);
   const targetUrl = `${config.resHost}${req.url}`; // 替换为目标服务器的 URL
+  console.log(`targetUrl = ${targetUrl}`);
+
   const method = req.method;
   const headers = {
     ...req.headers,