File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/web/src/app/api/(server)/commits Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import { isServiceError } from "@/lib/utils";
44import { NextRequest } from "next/server" ;
55import { schemaValidationError } from "@/lib/serviceError" ;
66import { searchCommitsRequestSchema } from "@/features/search/schemas" ;
7+ import { withOptionalAuthV2 } from "@/withAuthV2" ;
78
8- export const POST = async ( request : NextRequest ) => {
9+ export const POST = async ( request : NextRequest ) => withOptionalAuthV2 ( async ( ) => {
910 const body = await request . json ( ) ;
1011 const parsed = await searchCommitsRequestSchema . safeParseAsync ( body ) ;
1112
@@ -22,4 +23,4 @@ export const POST = async (request: NextRequest) => {
2223 }
2324
2425 return Response . json ( response ) ;
25- }
26+ } ) ;
You can’t perform that action at this time.
0 commit comments