● Zion Boggan
repos/Docket/app/api/spending/apportionments/route.ts
zionboggan.com ↗
9 lines · typescript
History for this file →
1
import { NextResponse } from "next/server";
2
import { getApportionments, type Apportionment } from "@/lib/feed";
3
 
4
export const dynamic = "force-dynamic";
5
 
6
export async function GET() {
7
  const items = getApportionments();
8
  return NextResponse.json({ items, total: items.length });
9
}