# Requirement change

The static assets team wants one route to catch everything under `/files/`, so they stop having
to register a pattern for every new file that gets uploaded.

**What's needed:** a pattern that matches one path segment or more — not exactly one — at the
tail end of a path. `/files/**` should match `/files/report.pdf` and it should match
`/files/2026/q1/report.pdf`, but it should not match `/files` on its own, because there is
nothing after it to catch.

Two things the team specifically asked about, because they got bitten by something similar
before:

- If someone registers a specific file at `/files/report.pdf` as well as the catch-all at
  `/files/**`, the specific one should win for that one file. The catch-all is a fallback, not an
  override.
- They also want to register a blanket catch-all at `/**` for a "everything else" 404 page, at the
  same time as the more specific `/files/**`. When both could apply, the more specific prefix
  should be the one that's used.

Nothing else about routing or middleware changes.
