Fix preflight middleware ordering and bump version

This commit is contained in:
2022-03-29 15:16:29 -05:00
parent 6ee3e2a729
commit 737d06f6f0
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export class RouteGroup extends AppClass {
/** Register the given middleware to be applied before all routes in this group. */
pre(middleware: Instantiable<Middleware>): this {
this.preflight.push(middleware)
this.preflight.prepend(middleware)
return this
}