UNPKG

create-cloudflare

Version:

A CLI for creating and deploying new applications to Cloudflare.

13 lines (11 loc) 259 B
export default { fetch(request) { const url = new URL(request.url); if (url.pathname.startsWith("/api/")) { return Response.json({ name: "Cloudflare", }); } return new Response(null, { status: 404 }); }, } satisfies ExportedHandler<Env>;