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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user