Procházet zdrojové kódy

refactor(api): remove unused NextRequest import and parameter

vidane před 6 měsíci
rodič
revize
c260c63e60
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/api/files/route.ts

+ 2 - 2
app/api/files/route.ts

@@ -1,9 +1,9 @@
-import { NextRequest, NextResponse } from "next/server";
+import { NextResponse } from "next/server";
 import { PrismaClient } from "@prisma/client";
 
 const prisma = new PrismaClient();
 
-export const GET = async (req: NextRequest) => {
+export const GET = async () => {
   try {
     const files = await prisma.file.findMany({
       select: {