fix: incorrect middleware ordering (#3102)

This is a regression introduced in
https://github.com/denoland/fresh/pull/3086
This commit is contained in:
Marvin Hagemeister
2025-07-16 16:43:46 +02:00
committed by GitHub
parent 9efaf0463e
commit c279efa345
2 changed files with 35 additions and 1 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ export class App<State> {
fns = middlewares;
}
const segment = getOrCreateSegment(this.#root, path, false);
const segment = getOrCreateSegment(this.#root, path, true);
segment.middlewares.push(...fns);
return this;