Compare commits

..

No commits in common. "8f8897338a2982e381a9c68c38bc9f1f67da9206" and "d93bfe172b7429c3641dc0806891e3f5cdf17b8e" have entirely different histories.

2 changed files with 5 additions and 5 deletions

6
db.js
View File

@ -28,9 +28,9 @@ const db = require("mariadb");
// create pool // create pool
const pool = db.createPool({ const pool = db.createPool({
connectionLimit : 10, connectionLimit : 10,
host : 'db-in-docker', host : 'localhost',
user : 'root', user : 'user',
password : 'ncnu', password : '',
database : 'scholarship' database : 'scholarship'
}); });

View File

@ -34,7 +34,7 @@ app.use('/css', express.static('./css'));
// }); // });
const port = 5000; const port = 5001;
// 如何處理不同的 request參數分別為 url 和要執行的 function // 如何處理不同的 request參數分別為 url 和要執行的 function
app.get('/', (req, res) => { app.get('/', (req, res) => {