Fix preflight middleware ordering and bump version
This commit is contained in:
parent
6ee3e2a729
commit
737d06f6f0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@extollo/lib",
|
"name": "@extollo/lib",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"description": "The framework library that lifts up your code.",
|
"description": "The framework library that lifts up your code.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
@ -88,7 +88,7 @@ export class RouteGroup extends AppClass {
|
|||||||
|
|
||||||
/** Register the given middleware to be applied before all routes in this group. */
|
/** Register the given middleware to be applied before all routes in this group. */
|
||||||
pre(middleware: Instantiable<Middleware>): this {
|
pre(middleware: Instantiable<Middleware>): this {
|
||||||
this.preflight.push(middleware)
|
this.preflight.prepend(middleware)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user