diff options
Diffstat (limited to 'src/mailman/interfaces/plugin.py')
| -rw-r--r-- | src/mailman/interfaces/plugin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/interfaces/plugin.py b/src/mailman/interfaces/plugin.py index 9e226824f..f1b7212f0 100644 --- a/src/mailman/interfaces/plugin.py +++ b/src/mailman/interfaces/plugin.py @@ -30,3 +30,9 @@ class IPlugin(Interface): def post_hook(): """A plugin hook called in the second initialization step. After DB.""" + + def rest_object(): + """Return the REST object which will be hooked up to the REST api. + + This object will be served at the /<api>/plugins/<plugin.name>/ root. + """ |
