feat: redesign superadmin agencies list, implement flat design, add date filters, and fix UI bugs

This commit is contained in:
Erik Silva
2025-12-11 23:39:54 -03:00
parent 053e180321
commit dc98d5dccc
129 changed files with 20730 additions and 1611 deletions

View File

@@ -12,7 +12,13 @@ export async function POST(request: NextRequest) {
body: JSON.stringify(body),
});
const data = await response.json();
const text = await response.text();
let data: any;
try {
data = JSON.parse(text);
} catch (e) {
data = { error: text };
}
if (!response.ok) {
return NextResponse.json(data, { status: response.status });