9router / src /app /api /tunnel /disable /route.js
2api
feat: configurable stream stall timeout + per-provider UI
88c4c60
Raw
History Blame Contribute Delete
360 Bytes
import { NextResponse } from "next/server";
import { disableTunnel } from "@/lib/tunnel";
export async function POST() {
try {
const result = await disableTunnel();
return NextResponse.json(result);
} catch (error) {
console.error("Tunnel disable error:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
}
}