From fa340da3f4fd7f829043e8c0f189e7da7df4d3f1 Mon Sep 17 00:00:00 2001 From: Hugo Freire Date: Sun, 26 Mar 2017 15:48:11 +0200 Subject: [PATCH] fix(route): expose route pre config option --- src/routes/route.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/route.js b/src/routes/route.js index 787f4651..5bb14f42 100644 --- a/src/routes/route.js +++ b/src/routes/route.js @@ -27,6 +27,8 @@ class Route { cors () {} + pre () {} + toRoute () { return { method: this.method, @@ -40,7 +42,8 @@ class Route { description: this.description, notes: this.notes, validate: this.validate(), - cors: this.cors() + cors: this.cors(), + pre: this.pre() } } }