fix: correct image URL path to match API route

Changed from /api/zine/[id]/image/p1.png to /api/zine/[id]?image=p1
to match the actual API route handler.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-12-18 19:27:13 -05:00
parent 2099757b5d
commit 779a0806a2
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export async function POST(request: NextRequest) {
return NextResponse.json({
pageNumber,
imageUrl: `/api/zine/${zineId}/image/p${pageNumber}.png`,
imageUrl: `/api/zine/${zineId}?image=p${pageNumber}`,
success: true,
});
} catch (error) {