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:
parent
2099757b5d
commit
779a0806a2
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue