deep-research / src /app /api-docs /route.ts
Leon4gr45's picture
Deploy app
c16e487 verified
import { NextResponse } from 'next/server';
export async function GET() {
return NextResponse.json({
endpoints: [
{
method: "GET",
path: "/health",
purpose: "Returns HTTP 200 when the app is ready. Required for Hugging Face to transition the Space from starting to running.",
request: {},
response: {
status: "ok"
}
},
{
method: "GET",
path: "/api-docs",
purpose: "Documents all available API endpoints.",
request: {},
response: {
endpoints: "Array of endpoint objects"
}
}
]
}, { status: 200 });
}