api mobile

Deskripsi:
- create divisi mobile
- laporan divisi

No Issues
This commit is contained in:
amel
2025-05-28 16:53:14 +08:00
parent 996ab4fd31
commit cb17e8a1f7
2 changed files with 16 additions and 12 deletions

View File

@@ -295,7 +295,7 @@ export async function POST(request: Request) {
// create log user
const log = await createLogUserMobile({ act: 'CREATE', desc: 'User membuat data divisi', table: 'division', data: data.id, user: userId })
return NextResponse.json({ success: true, message: "Berhasil menambahkan divisi", notif: dataNotif, }, { status: 200 });
return NextResponse.json({ success: true, message: "Berhasil menambahkan divisi" }, { status: 200 });
} catch (error) {
console.error(error);
return NextResponse.json({ success: false, message: "Gagal menambahkan divisi, coba lagi nanti (error: 500)", reason: (error as Error).message, }, { status: 500 });