Skip to content

Commit d7a9127

Browse files
committed
refactor: update parameter type in GET function to simplify username extraction
1 parent 6ecfc6f commit d7a9127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/api/user/[username]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { githubAPIClient } from '@/lib/api/github-api-client'
33

44
export async function GET(
55
request: NextRequest,
6-
{ params }: { params: Promise<{ username: string }> }
6+
{ params }: { params: { username: string } }
77
) {
88
try {
9-
const { username } = await params
9+
const { username } = params
1010

1111
if (!username) {
1212
return NextResponse.json(

0 commit comments

Comments
 (0)