|
|
@@ -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 = {
|