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

export async function POST(
  request: Request,
  context: { params: Promise<{ bookId: string }> },
) {
  const { bookId } = await context.params;
  return getChapterApi().finalize(request, bookId);
}
