chore: add all the code from original repo

This commit is contained in:
Riccardo
2024-05-23 16:55:29 +02:00
parent d8f9a215eb
commit 85d66215a7
66 changed files with 16668 additions and 122 deletions

8
utils/ApiResponse.ts Normal file
View File

@@ -0,0 +1,8 @@
import { NextResponse } from 'next/server';
export function ApiResponse(status: number, message: string) {
const response = new NextResponse(message, { status });
response.headers.set('Access-Control-Allow-Origin', process.env.HOME_URL!);
return response;
}