diff options
| author | J08nY | 2017-06-01 20:53:53 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-07 17:39:07 +0200 |
| commit | a665dccf9404d6f95d8a4587f05d748b504e1f9d (patch) | |
| tree | a2bc4f3e4cbb443224d66a5cae4b78131b4e4213 /src/mailman/interfaces/plugin.py | |
| parent | 1f1a35e7ccde1cfe239286a9a6333ebe8882d8f3 (diff) | |
| download | mailman-a665dccf9404d6f95d8a4587f05d748b504e1f9d.tar.gz mailman-a665dccf9404d6f95d8a4587f05d748b504e1f9d.tar.zst mailman-a665dccf9404d6f95d8a4587f05d748b504e1f9d.zip | |
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. + """ |
