From 737d06f6f0d5a43617ff1cb024281ca12826e387 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 29 Mar 2022 15:16:29 -0500 Subject: [PATCH] Fix preflight middleware ordering and bump version --- package.json | 2 +- src/http/routing/RouteGroup.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5864733..cc2088f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.9.2", + "version": "0.9.3", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/http/routing/RouteGroup.ts b/src/http/routing/RouteGroup.ts index 01afc6f..fc591e0 100644 --- a/src/http/routing/RouteGroup.ts +++ b/src/http/routing/RouteGroup.ts @@ -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): this { - this.preflight.push(middleware) + this.preflight.prepend(middleware) return this }