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

export async function GET(
  _request: Request,
  context: { params: Promise<{ bookId: string; chapterId: string }> },
) {
  const { bookId, chapterId } = await context.params;
  return getAudioApi().listChapter(bookId, chapterId);
}
