7.1 게시글 CRUD API 및 페이지 연동 o

This commit is contained in:
koreacomp5
2025-10-09 16:49:06 +09:00
parent f6dc33a42c
commit 7342c9bea2
7 changed files with 136 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ export function PostList({ boardId, sort = "recent", q }: { boardId?: string; so
{items.map((p) => (
<li key={p.id} style={{ padding: 12, border: "1px solid #eee", borderRadius: 8 }}>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<strong>{p.title}</strong>
<strong><a href={`/posts/${p.id}`}>{p.title}</a></strong>
<span style={{ opacity: 0.7 }}>{new Date(p.createdAt).toLocaleString()}</span>
</div>
<div style={{ fontSize: 12, opacity: 0.8 }}>