Skip to content

Commit

Permalink
fix(route): expose route pre config option
Browse files Browse the repository at this point in the history
  • Loading branch information
hfreire committed Mar 26, 2017
1 parent b980e81 commit fa340da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Route {

cors () {}

pre () {}

toRoute () {
return {
method: this.method,
Expand All @@ -40,7 +42,8 @@ class Route {
description: this.description,
notes: this.notes,
validate: this.validate(),
cors: this.cors()
cors: this.cors(),
pre: this.pre()
}
}
}
Expand Down

0 comments on commit fa340da

Please sign in to comment.