We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ecfc6f commit d7a9127Copy full SHA for d7a9127
src/app/api/user/[username]/route.ts
@@ -3,10 +3,10 @@ import { githubAPIClient } from '@/lib/api/github-api-client'
3
4
export async function GET(
5
request: NextRequest,
6
- { params }: { params: Promise<{ username: string }> }
+ { params }: { params: { username: string } }
7
) {
8
try {
9
- const { username } = await params
+ const { username } = params
10
11
if (!username) {
12
return NextResponse.json(
0 commit comments