Skip to content

Commit

Permalink
feat: allow second arg with config to hookBeforeRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 25, 2024
1 parent d6f1bc4 commit a77e029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class API {

// Allow before hooks to get setup
if (_.isFunction(this.config.hookBeforeRoutes))
this.config.hookBeforeRoutes(app);
this.config.hookBeforeRoutes(app, this.config);

// Mount the app's defined and nested routes
if (this.config.routes) {
Expand Down

0 comments on commit a77e029

Please sign in to comment.