|
|
@@ -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,
|