Interactive Endpoint Consumer
GET /api/ping
Click the button below to test client-side fetch() dispatch against the live edge worker endpoint:
Source: src/api/ping.ts
export const GET = async (_request: Request, context: { remoteIp: string; platform?: { name: string } }) => {
return Response.json({
pong: true,
platform: context.platform?.name ?? 'unknown',
});
};