create api version

This commit is contained in:
2025-02-25 12:11:24 +08:00
parent ee524b4bae
commit a894ba7fb7
2 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
import { NextResponse } from "next/server";
import packageVersion from "../../../../package.json";
export async function GET(request: Request) {
const version = packageVersion.version
return NextResponse.json(
{
success: true,
message: "Success get version",
data: version,
},
{ status: 200 }
);
}

View File

@@ -217,7 +217,7 @@
>Scan QrCode dan join melalui halaman konfirmasi</label
>
</li>
<li>
<!-- <li>
<input type="checkbox" id="buat-event-hari-ini" />
<label for="buat-event-hari-ini"
>Buat event baru (tanggal dan jam hari ini)</label
@@ -232,7 +232,7 @@
<label for="scan-qr-konfirmasi"
>Scan QrCode dan join melalui halaman konfirmasi</label
>
</li>
</li> -->
<li>
<input type="checkbox" id="cek-kontribusi-user" />
<label for="cek-kontribusi-user">Cek kontribusi user</label>