Add Oudelaa dashboard API integration
Deploy To Ghaymah / deploy (push) Has been cancelled

This commit is contained in:
boutmoun123
2026-05-25 20:36:52 +03:00
parent 367fce6557
commit 8863f61d00
90 changed files with 16694 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import { apiEndpoints } from "@/lib/api/endpoints";
import { fetchWithAuth } from "@/lib/auth/client";
import type { CommentsResponse, SuccessMessage } from "@/types/api";
export async function listModerationComments(
params: Record<string, string | number | boolean | null | undefined> = {},
) {
return fetchWithAuth<CommentsResponse>(apiEndpoints.comments.moderation(params));
}
export async function deleteAdminComment(commentId: string) {
return fetchWithAuth<SuccessMessage>(apiEndpoints.comments.adminDelete(commentId), {
method: "DELETE",
});
}