testing yuk

This commit is contained in:
Randa Firman Putra
2025-09-14 16:59:31 +07:00
parent 248fed0d0b
commit 60211ae829
63 changed files with 315 additions and 315 deletions

View File

@@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from 'next/server';
import supabase from '@/lib/db';
// GET - Fetch all prestasi mahasiswa or filter by criteria
// GET - Ambil semua data prestasi mahasiswa atau filter berdasarkan kriteria
export async function GET(request: NextRequest) {
try {
const { searchParams } = new URL(request.url);
@@ -109,7 +109,7 @@ export async function GET(request: NextRequest) {
}
}
// POST - Create a new prestasi mahasiswa
// POST - Buat data prestasi mahasiswa baru
export async function POST(request: NextRequest) {
try {
const body = await request.json();
@@ -196,7 +196,7 @@ export async function POST(request: NextRequest) {
}
}
// PUT - Update an existing prestasi mahasiswa
// PUT - Update data prestasi mahasiswa yang sudah ada
export async function PUT(request: NextRequest) {
try {
const { searchParams } = new URL(request.url);
@@ -296,7 +296,7 @@ export async function PUT(request: NextRequest) {
}
}
// DELETE - Delete a prestasi mahasiswa
// DELETE - Hapus data prestasi mahasiswa
export async function DELETE(request: NextRequest) {
try {
const { searchParams } = new URL(request.url);