fix: incorrect middleware ordering (#3102)
This is a regression introduced in https://github.com/denoland/fresh/pull/3086
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user