Replace the starter app with a public/local flasher that discovers sibling firmwares, supports en/zh, and documents HTTPS deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
313 B
TypeScript
14 lines
313 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { discoverFirmware } from "@/lib/firmware";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
const firmwares = discoverFirmware();
|
|
return NextResponse.json({
|
|
chipFamily: "ESP32",
|
|
count: firmwares.length,
|
|
firmwares,
|
|
});
|
|
}
|