update project api and page, set pagination in blog and create content generator component, create blog single page, ui fix

This commit is contained in:
2025-06-19 15:48:47 +03:30
parent 38df8ec335
commit e69e2bf7e1
34 changed files with 984 additions and 137 deletions
-3
View File
@@ -7,7 +7,6 @@ const filePath = path.resolve(process.cwd(), 'contactMessages.json');
export async function POST(request: NextRequest) {
try {
const body = await request.json();
console.log(body)
const { first_name, last_name, phone, email, message } = body;
if (!first_name || !last_name || !phone || !email || !message) {
@@ -44,8 +43,6 @@ export async function POST(request: NextRequest) {
message: 'Your message has been received.',
});
} catch (error) {
console.log(error)
console.log(error)
return NextResponse.json(
{ error, message: 'مشکلی پیش آمده.' },
{ status: 400 },