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

@@ -18,7 +18,11 @@ async function POST(request: Request) {
},
});
if (!create) return { status: 400, message: "Gagal Membuat Vote" };
if (!create)
return NextResponse.json({
status: 400,
message: "Gagal Membuat Vote",
});
for (let v of data.listVote) {
const val = v.value;
@@ -30,7 +34,11 @@ async function POST(request: Request) {
},
});
if (!namaVote) return { status: 400, message: "Gagal Membuat List" };
if (!namaVote)
return NextResponse.json({
status: 400,
message: "Gagal Membuat List",
});
}
return NextResponse.json(