Mobile: Api Collaboration

Add:
- /mobile/collaboration/

Fix:
- mobile/voting: POST Method

### No Issue
This commit is contained in:
2025-09-22 17:41:30 +08:00
parent 26723499b4
commit 28ce7579cd
5 changed files with 328 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
import { NextResponse } from "next/server";
import { prisma } from "@/lib";
export { GET };
async function GET(request: Request) {
try {
const data = await prisma.projectCollaborationMaster_Industri.findMany({
orderBy: {
id: "asc",
},
});
return NextResponse.json(
{ success: true, message: "Berhasil mendapatkan data", data: data },
{ status: 200 }
);
} catch (error) {
console.log("[ERROR]", error);
return NextResponse.json(
{ success: false, message: "Gagal mendapatkan data" },
{ status: 500 }
);
}
}