1import { SERVER_MARKER } from "./server-marker.ts";
2
3export default {
4 async fetch(request: Request): Promise<Response> {
5 const url = new URL(request.url);
6 if (url.pathname === "/api/marker") {
7 return new Response(JSON.stringify({ marker: SERVER_MARKER }), {
8 headers: { "content-type": "application/json" },
9 });
10 }
11 // Assets route ahead of the Worker in both modes, so only unmatched
12 // paths land here.
13 return new Response("Not Found", { status: 404 });
14 },
15};