migration

This commit is contained in:
Théo LAGACHE
2025-05-16 15:54:17 +02:00
parent 01019fe1a3
commit 6f2523e524
285 changed files with 15492 additions and 46090 deletions
+7 -16
View File
@@ -1,20 +1,14 @@
import {NextResponse} from "next/server";
import { NextResponse } from "next/server";
export type BodyInit = {
initialize: boolean
}
initialize: boolean;
};
export async function POST(
request: Request,
) {
export async function POST(request: Request) {
try {
const body: BodyInit = await request.json();
console.log(body)
console.log(body);
return NextResponse.json(
{
@@ -24,9 +18,6 @@ export async function POST(
);
} catch (error) {
console.error("Error in POST initialization:", error);
return NextResponse.json(
{ error: "Internal server error" },
{ status: 500 }
);
return NextResponse.json({ error: "Internal server error" }, { status: 500 });
}
}
}