- Added tunnel
- Removed cloud feature
This commit is contained in:
decolua committed 2026-02-21 16:42:46 +07:00
1 parent adf57aa0c9
commit 0baa299722
37 files changed
+858 -933

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from "next/server";
import { disableTunnel } from "@/lib/tunnel/tunnelManager";
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 });
}
}
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from "next/server";
import { enableTunnel } from "@/lib/tunnel/tunnelManager";
export async function POST() {
try {
const result = await enableTunnel();
return NextResponse.json(result);
} catch (error) {
console.error("Tunnel enable error:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
}
}
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from "next/server";
import { getTunnelStatus } from "@/lib/tunnel/tunnelManager";
export async function GET() {
try {
const status = await getTunnelStatus();
return NextResponse.json(status);
} catch (error) {
console.error("Tunnel status error:", error);
return NextResponse.json({ error: error.message }, { status: 500 });
}
}