diff --git a/src/app/api/books/route.ts b/src/app/api/books/route.ts index d0c38ec..7d36e21 100644 --- a/src/app/api/books/route.ts +++ b/src/app/api/books/route.ts @@ -10,7 +10,7 @@ export async function GET() { try { const data = await myReadShelf.fetch(); return NextResponse.json(data); - } catch (e) { + } catch { return NextResponse.json({ error: 'Failed to fetch data' }, { status: 500 }); } } \ No newline at end of file