- Industrial dark theme with #76B900 NVIDIA green accents - Real-time telemetry from Kubernetes API - Create Sandbox button and workflow - Destroy Sandbox mode with destructive confirmation overlay - Sidebar fetches pod data directly from /api/telemetry/real - Fixed TypeError with defensive array checks - Technical typography, sharp corners, data-dense panels - Status indicators: GREEN RUNNING, red DESTROY mode
21 lines
550 B
TypeScript
21 lines
550 B
TypeScript
import { NextResponse } from 'next/server'
|
|
|
|
// Mock action handler
|
|
export async function POST(request: Request) {
|
|
try {
|
|
// In production, this would:
|
|
// 1. Call OpenShell API to start the sandbox
|
|
// 2. Wait for confirmation
|
|
// 3. Return success/error response
|
|
await new Promise(resolve => setTimeout(resolve, 1000))
|
|
|
|
return NextResponse.json({
|
|
message: 'Sandbox started successfully'
|
|
})
|
|
} catch (error) {
|
|
return NextResponse.json(
|
|
{ error: 'Failed to start sandbox' },
|
|
{ status: 500 }
|
|
)
|
|
}
|
|
} |