feat: add read and delete customer form
This commit is contained in:
5
utils/createErrorResponse.ts
Normal file
5
utils/createErrorResponse.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export function createErrorResponse(message: string, status: number) {
|
||||
return NextResponse.json({ success: false, message }, { status });
|
||||
}
|
||||
Reference in New Issue
Block a user