home page initial ui implemented

This commit is contained in:
Sanidhya Kumar Verma
2024-08-30 12:18:27 +00:00
committed by GitHub
parent 7f0d38eb3c
commit b313417609
11 changed files with 379 additions and 13 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ export async function POST(req: Request) {
error: "Missing required fields!",
},
{
status: 400,
status: 404,
},
);
}
@@ -33,6 +33,6 @@ export async function POST(req: Request) {
} catch (error) {
console.log(error);
return Response.json({ error });
return Response.json({ error }, { status: 500 });
}
}