fixed a bit

This commit is contained in:
bobbert committed 2025-03-11 23:09:05 +00:00
1 parent a0fb2b9970
commit 25fe268ed6
3 files changed
+150 -142

No files matched your search

+7 -1
View File
@@ -1,3 +1,4 @@
// app/api/teams/[teamId]/route.js
import { queryOne, query } from "../../../../lib/db";
import { getServerSession } from "next-auth/next";
import { authOptions } from "../../auth/[...nextauth]/route";
@@ -35,7 +36,12 @@ export async function GET(request, { params }) {
[teamId]
);
return new Response(JSON.stringify({ team, members }), { status: 200 });
return new Response(JSON.stringify({ team, members }), {
status: 200,
headers: {
"Content-Type": "application/json",
},
});
} catch (error) {
console.error("Team fetch error:", error);
return new Response(