fix: kode otp

Deskripsi:
- update fungsi random nomer kode otp 4 digit
- update api version

No Issues
This commit is contained in:
amel
2025-04-11 10:43:07 +08:00
parent 5e708f0dd3
commit 080a633e48
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
export async function GET(request: Request) {
try {
return NextResponse.json({ success: true, version: "1.3.0", tahap: "beta", update: "update baru : menampilkan notifikasi pengumuman setelah login" }, { status: 200 });
return NextResponse.json({ success: true, version: "1.3.1", tahap: "beta", update: "- update baru : menampilkan notifikasi pengumuman setelah login; - fix random nomer kode otp 4 digit" }, { status: 200 });
} catch (error) {
console.error(error);
return NextResponse.json({ success: false, version: "Gagal mendapatkan version, coba lagi nanti (error: 500)", reason: (error as Error).message, }, { status: 500 });