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

export async function GET(
  _request: Request,
  context: { params: Promise<{ bookId: string }> },
) {
  return getProgressApi().get((await context.params).bookId);
}

export async function PUT(
  request: Request,
  context: { params: Promise<{ bookId: string }> },
) {
  return getProgressApi().put(request, (await context.params).bookId);
}
