Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Back/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ router.get("/getdatas", async function (req, res, next) {
res.status(404).send("데이터 없음");
}
} catch (err) {
console.error("데이터 읽기 오류:", err);
res.status(500).send("서버 오류");
}
});
Expand Down Expand Up @@ -222,7 +223,7 @@ router.post("/login", async function (req, res, next) {
.json({ message: "아이디 또는 비밀번호가 잘못되었습니다." });
}
} catch (err) {
console.error(err);
console.error("로그인 오류", err);
res.status(500).send("서버 오류");
}
});
Expand Down Expand Up @@ -281,10 +282,7 @@ function authenticateToken(req, res, next) {

// CSRF 토큰을 세션에 저장하고 재사용
router.get("/csrf-token", function (req, res) {
if (!req.session.csrfToken) {
req.session.csrfToken = req.csrfToken();
}
res.json({ csrfToken: req.session.csrfToken });
res.json({ csrfToken: req.csrfToken() });
});

module.exports = router;
3 changes: 2 additions & 1 deletion Front/src/app/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ h1 {
.main-box-1 {
flex: 1;
max-width: 650px;
max-height: 70vh;
}

/* 오른쪽 컬럼 (리뷰) */
Expand All @@ -118,7 +119,7 @@ h1 {
border-radius: var(--radius-lg);
box-shadow: var(--shadow-medium);
border: 1px solid var(--border-color);
max-height: 132.5vh;
max-height: 70vh;
overflow-y: auto;
}

Expand Down