45af56d9cf
Also added: - Memory API endpoints - Briefs API endpoints - AnveVoice stats API - Claude spawn API - TTS proxy - Cleopatra voice widget - api-auth middleware
17 lines
415 B
TypeScript
17 lines
415 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
export async function GET() {
|
|
try {
|
|
const response = await fetch('http://localhost:3456/');
|
|
const html = await response.text();
|
|
return new NextResponse(html, {
|
|
status: 200,
|
|
headers: {
|
|
'Content-Type': 'text/html',
|
|
},
|
|
});
|
|
} catch (error) {
|
|
return NextResponse.json({ error: 'Claw3D not running' }, { status: 503 });
|
|
}
|
|
}
|