ninomae1001
commited on
Commit
•
fcae6a7
1
Parent(s):
37223a2
Update server.js
Browse files
server.js
CHANGED
@@ -3,7 +3,7 @@ const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
3 |
|
4 |
const app = express();
|
5 |
|
6 |
-
app.use('/
|
7 |
target: 'http://www.baidu.com',
|
8 |
changeOrigin: true,
|
9 |
pathRewrite: {
|
|
|
3 |
|
4 |
const app = express();
|
5 |
|
6 |
+
app.use('/', createProxyMiddleware({
|
7 |
target: 'http://www.baidu.com',
|
8 |
changeOrigin: true,
|
9 |
pathRewrite: {
|