File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/app/api/blob/[owner]/[repository]/[...path] Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,7 @@ import { NextRequest, NextResponse } from "next/server"
22import { session , userGitHubClient } from "@/composition"
33import { makeUnauthenticatedAPIErrorResponse } from "@/common"
44
5- interface GetBlobParams {
6- owner : string
7- repository : string
8- path : [ string ]
9- }
10-
11- export async function GET ( req : NextRequest , { params } : { params : Promise < GetBlobParams > } ) {
5+ export async function GET ( req : NextRequest , { params } : { params : Promise < { owner : string ; repository : string ; path : string [ ] } > } ) {
126 const isAuthenticated = await session . getIsAuthenticated ( )
137 if ( ! isAuthenticated ) {
148 return makeUnauthenticatedAPIErrorResponse ( )
@@ -33,4 +27,4 @@ export async function GET(req: NextRequest, { params }: { params: Promise<GetBlo
3327 headers . set ( "Content-Type" , "text/plain" ) ;
3428 }
3529 return new NextResponse ( file , { status : 200 , headers } )
36- }
30+ }
You can’t perform that action at this time.
0 commit comments