File size: 518 Bytes
88c4c60 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import { NextResponse } from "next/server";
import { getTunnelStatus, getTailscaleStatus, getDownloadStatus } from "@/lib/tunnel";
export async function GET() {
try {
const [tunnel, tailscale] = await Promise.all([getTunnelStatus(), getTailscaleStatus()]);
const download = getDownloadStatus();
return NextResponse.json({ tunnel, tailscale, download });
} catch (error) {
console.error("Tunnel status error:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
}
}
|