HyeonJun Jeon

[Style] Integrate react and express

......@@ -38,10 +38,10 @@ app.use("/db", dbRouter);
// } else console.log("Incorrect user ID or password.");
// });
// app.use(express.static(path.join(__dirname, '../build')));
// app.get('*', function (요청, 응답) {
// 응답.sendFile(path.join(__dirname, '../build/index.html'));
// });
app.use(express.static(path.join(__dirname, "../build")));
app.get("*", function (요청, 응답) {
응답.sendFile(path.join(__dirname, "../build/index.html"));
});
app.listen(3001, function () {
console.log("listening on 3001");
......