Skip to content

Commit a77e029

Browse files
committed
feat: allow second arg with config to hookBeforeRoutes
1 parent d6f1bc4 commit a77e029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class API {
198198

199199
// Allow before hooks to get setup
200200
if (_.isFunction(this.config.hookBeforeRoutes))
201-
this.config.hookBeforeRoutes(app);
201+
this.config.hookBeforeRoutes(app, this.config);
202202

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

0 commit comments

Comments
 (0)