modified: server.js

This commit is contained in:
IrisVega 2024-07-13 10:19:06 +08:00
parent dbe31e9e68
commit 45b1a418b8

View File

@ -4,7 +4,7 @@ const bodyParser = require('body-parser');
const cors = require('cors'); const cors = require('cors');
const path = require('path'); const path = require('path');
const app = express(); const app = express();
const port = 3000; const port = 4040;
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(cors()); app.use(cors());