mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
Added route support
This commit is contained in:
+4
-1
@@ -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]
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user