Skip to content

Commit

Permalink
corregido
Browse files Browse the repository at this point in the history
  • Loading branch information
unaisdev committed May 16, 2023
1 parent abb639a commit 6ef9885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/projects/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export async function GET(request: Request) {
try {
// Use the Prisma client to interact with your MongoDB
const data = await prisma.project.findMany();
return new Response("data" + JSON.stringify(data));
return new Response(JSON.stringify(data));
} catch (error) {
return new Response("error" + JSON.stringify(error));
return new Response(JSON.stringify(error));
} finally {
await prisma.$disconnect();
}
Expand Down

0 comments on commit 6ef9885

Please sign in to comment.