Engineering manualAPI route source
/api/local-runs
Exact current route handler: hosted-app/app/api/local-runs/route.js
Methods: GET. Input signals: none detected. Literal response-status signals: none detected.
Source: hosted-app/app/api/local-runs/route.js. Imports: @/lib/local-runs.mjs, next/server. Exact source is shown for inspection; its presence does not prove authentication, validation or live behavior.
All API routes · API and execution contract
// GET /api/local-runs — the live-run list for the local dashboard.
// Local only: see lib/local-runs.mjs. Reads files, never the database.
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
import { NextResponse } from "next/server";
import { listLocalRuns } from "@/lib/local-runs.mjs";
export async function GET() {
const body = listLocalRuns();
return NextResponse.json(body, { status: body.available ? 200 : 404, headers: { "cache-control": "no-store" } });
}