import { NextResponse } from "next/server"; import { getAllBooks } from "@/lib/api"; export async function GET() { const books = await getAllBooks(); return NextResponse.json(books); }