// src/app/api/country-modules/[id]/route.ts
import { NextRequest } from 'next/server';
import { proxyRequest } from '@/lib/api-utils';

export async function GET(
  request: NextRequest,
  { params }: { params: Promise<{ id: string }> }
) {
  const {id} = await params;
  return proxyRequest(request, `/api/v1/country-modules/${id}`);
}

export async function PUT(
  request: NextRequest,
  { params }: { params: Promise<{ id: string }> }
) {
  const {id} = await params;
  return proxyRequest(request, `/api/v1/country-modules/${id}`, 'PUT');
}

export async function DELETE(
  request: NextRequest,
  { params }: { params: Promise<{ id: string }> }
) {
  const {id} = await params;
  return proxyRequest(request, `/api/v1/country-modules/${id}`, 'DELETE');
}
