Added route support

This commit is contained in:
Wyatt Johnson
2017-04-03 15:31:51 -06:00
parent 368838df98
commit febe264320
2 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -122,7 +122,10 @@ class PluginSection {
hook(hook) {
return this.plugins
.filter(({module}) => hook in module)
.map((plugin) => ({plugin, [hook]: module[hook]}));
.map((plugin) => ({
plugin,
[hook]: plugin.module[hook]
}));
}
}