Skip to content

Commit

Permalink
fix: images api
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Jan 12, 2025
1 parent 652af5d commit 4e44411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/images/[project]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import type { NextRequest } from "next/server";

export async function GET(
request: NextRequest,
context: { params: { project: string } }
context: { params: Promise<{ project: string }> }
) {
const { project } = await context.params;
const project = (await context.params).project;

if (!project) {
return NextResponse.json(
Expand Down

0 comments on commit 4e44411

Please sign in to comment.