Loading the puzzle…
The puzzle IDE is built for a laptop or larger screen. You can read everything here, but selecting code is easier with a mouse and a wider window.
Two apps are built with the H3 class from src/h3.ts and default config, in this order:
const child = new H3();
child.use((event) => { console.log(event.url.pathname); });
child.get("/early", () => "early");
const parent = new H3();
parent.mount("/api", child);
child.get("/late", () => "late");
Neither app has any other middleware, routes, plugins or hooks. A GET request for
http://localhost/api/late is sent to parent.fetch. Following mount and the
request path through src/h3.ts, src/middleware.ts and src/response.ts, what happens?
Select one option.
One of the listed options.
Each hint revealed before you solve takes 20 points off this puzzle's score.
Solve this puzzle to see the solution and a full explanation.
Pick one of the options.