API – Donation (Admin & User)

- src/app/api/mobile/admin/donation/[id]/disbursement/route.ts
- src/app/api/mobile/donation/[id]/news/route.ts
- src/app/api/mobile/donation/route.ts

Donation Helper / Logic
- src/lib/mobile/donation/

### No Issue
This commit is contained in:
2026-01-27 16:59:31 +08:00
parent da0477102e
commit c94da645f3
4 changed files with 134 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ import { NextResponse } from "next/server";
import { NotificationMobileBodyType } from "../../../../../types/type-mobile-notification";
import { routeAdminMobile } from "@/lib/mobile/route-page-mobile";
export { POST };
export { POST, GET };
async function POST(request: Request) {
const { data } = await request.json();
@@ -121,7 +121,7 @@ async function POST(request: Request) {
}
// GET ALL DATA DONASI
export async function GET(request: Request) {
async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const category = searchParams.get("category");
const authorId = searchParams.get("authorId");