Files
DataStack/app/api/metrics/route.ts
T
Md Najmul d39d9f92f9 docs: update AI Studio design token audits
Refresh design token inventory files to reflect the latest UI sizing and layout configurations from the sandbox prototype.
2026-10-23 11:43:49 -05:00

13 lines
425 B
TypeScript

import { NextResponse } from 'next/server';
import { ApiEngine } from '@/core/apiEngine/apiService';
export async function GET() {
try {
const metrics = await ApiEngine.getDashboardMetrics();
return NextResponse.json(metrics);
} catch (err: unknown) {
const message = err instanceof Error ? err.message : 'Metrics calculation failed';
return NextResponse.json({ error: message }, { status: 500 });
}
}