import { getUploadApi } from "@/lib/server/app-services";

export async function GET(
  _request: Request,
  context: { params: Promise<{ uploadId: string }> },
) {
  const { uploadId } = await context.params;
  return getUploadApi().status(uploadId);
}

export async function DELETE(
  _request: Request,
  context: { params: Promise<{ uploadId: string }> },
) {
  const { uploadId } = await context.params;
  return getUploadApi().abort(uploadId);
}
