chore: code cleaning (#21)

This commit is contained in:
Riccardo Senica
2024-11-23 09:13:15 +01:00
committed by GitHub
parent c4f03feffe
commit c300b2501d
31 changed files with 903 additions and 872 deletions

View File

@@ -0,0 +1,7 @@
import { NextResponse } from 'next/server';
export function formatApiResponse(status: number, message: unknown) {
const stringMessage = JSON.stringify(message);
return new NextResponse(stringMessage, { status });
}