This commit is contained in:
2025-02-11 10:42:00 +08:00
parent a1405e301b
commit 2c443587ba
9 changed files with 487 additions and 128 deletions

View File

@@ -58,11 +58,12 @@ const apiGetAdminCountForumReportKomentar = async () => {
return await response.json().catch(() => null);
}
const apiGetAdminForumReportPosting = async () => {
const apiGetAdminForumReportPosting = async ({page} : { page?: string}) => {
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
if (!token) return await token.json().catch(() => null);
const response = await fetch(`/api/admin/forum/posting`, {
const isPage = page ? `?page=${page}` : "";
const response = await fetch(`/api/admin/forum/posting${isPage}`, {
method: "GET",
headers: {
"Content-Type": "application/json",