Skip to content

Commit f6df0d9

Browse files
🔧 refactor: streamline imports and enhance type consistency in API route
1 parent 7241298 commit f6df0d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎apps/web/app/api/uploads/search/route.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { NextApiResponse, NextApiRequest } from 'next';
1+
import { NextApiResponse } from 'next';
22
import { prisma } from '@/app/utils';
33
import { getUser } from '../../utils';
44
import { captureException } from '@sentry/nextjs';
5-
import { NextResponse } from 'next/server';
5+
import { NextRequest, NextResponse } from 'next/server';
66
import { z } from 'zod'; // Import Zod
77
import { Role } from '@prisma/client';
88

@@ -15,7 +15,7 @@ const requestBodySchema = z.object({
1515
});
1616

1717
// Handles POST requests for fetching user uploads with pagination and filtering support
18-
export async function POST(req: NextApiRequest, res: NextApiResponse) {
18+
export async function POST(req: NextRequest, res: NextApiResponse) {
1919
try {
2020
// console.log(req.body)
2121
const body = await new Response(req.body).json();

0 commit comments

Comments
 (0)