api9nin / src /app /api /tunnel /disable /route.js
github-actions[bot]
deploy from github actions 2026-06-18
c8ae75d
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 });
}
}