Преглед изворни кода

refactor(api): remove unused NextRequest import and parameter

vidane пре 6 месеци
родитељ
комит
c260c63e60
1 измењених фајлова са 2 додато и 2 уклоњено
  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";
 import { PrismaClient } from "@prisma/client";
 
 
 const prisma = new PrismaClient();
 const prisma = new PrismaClient();
 
 
-export const GET = async (req: NextRequest) => {
+export const GET = async () => {
   try {
   try {
     const files = await prisma.file.findMany({
     const files = await prisma.file.findMany({
       select: {
       select: {