chore: remove sample comments
TS Lint / ESLint (push) Successful in 7m49s
Python Lint CI / ruff (push) Successful in 8m2s
Python Lint CI / ty (push) Successful in 8m1s
Python Lint CI / ruff-format-check (push) Successful in 8m1s
TS Lint / Oxlint (push) Successful in 4m11s
TS Lint / TypeScript (push) Successful in 4m6s

This commit is contained in:
2026-07-06 00:25:00 +02:00
parent 73067f51ce
commit 2e5eb86848
6 changed files with 9 additions and 63 deletions
-14
View File
@@ -1,14 +0,0 @@
import type { Comment } from "@/types";
export async function getComments(): Promise<Comment[]> {
const response = await fetch("/api/comments");
return await response.json();
}
export async function postComment(content: string): Promise<void> {
await fetch("/api/comments", {
method: "POST",
body: JSON.stringify({ content }),
headers: { "Content-Type": "application/json" },
});
}