Health Check Endpoint
Easy · Route Handlers
A route.ts file inside app/ creates an API endpoint instead of a page. You export a function named after the HTTP method (GET, POST, ...) that returns a Web Response. Response.json(data) creates a JSON response with status 200 and the header content-type: application/json.
Implement GET in app/api/health/route.ts so it returns the JSON { status: "ok" }.
The driver checkHealth(part) is already written: it calls your GET and returns one part of the response ("status", "contentType" or "body").
Next: Read a Query Parameter