Next.js API route for verifying document existence in Elasticsearch indices
GET
function is the primary exported component of this route. It handles incoming HTTP GET requests and returns a NextResponse
object.
req: NextRequest
: The incoming request object from Next.jsPromise<NextResponse>
: A promise that resolves to a Next.js response objectData Flow
Missing Parameters
Index Not Found
Elasticsearch Errors