Update new github

This commit is contained in:
2025-10-27 10:49:31 +08:00
parent 1bcd1a044f
commit 73a803f2e8
3 changed files with 167 additions and 69 deletions

View File

@@ -0,0 +1,18 @@
import { apiConfig } from "../api-config";
export async function apiAdminDonation({
category,
search,
}: {
category: "dashboard" | "publish" | "review" | "reject" ;
search?: string;
}) {
try {
const response = await apiConfig.get(
`/mobile/admin/donation?category=${category}&search=${search}`
);
return response.data;
} catch (error) {
throw error;
}
}