Closed scottinet closed 7 years ago
Ok, no bad news: funnel generated events come from the controller name, which is always prefixed by the plugin name.
So, if we have a plugin foobar
, exposing a document
controller with a get
action, the funnel will automatically trigger these events:
foobar/document:beforeGet
foobar/document:afterGet
Since before/action events are automatically generated by the funnel controller, this means that controller plugins automatically get those.
So, good news: we have a free feature, we only need to document it.
Now, the bad news: these events aren't prefixed with the plugin name. For instance, this means that if I create a controller plugin implementing a
document
controller with aget
action, then thedocument:beforeGet
event gets triggered either for the plugin or for the Kuzzle native API route.So before documenting our new free feature, we need to fix it.