diff options
| author | J08nY | 2017-06-01 20:53:53 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-17 19:35:47 +0200 |
| commit | f20e5d10b1ec0e920eba15f3b22dc3c48ea1ac85 (patch) | |
| tree | 13d95e1277272bc810eacde6bb00acbf03ecaee2 /src/mailman/interfaces/plugin.py | |
| parent | 7abfcbfe1f41b915dd4419ae6be857deb49f04db (diff) | |
| download | mailman-f20e5d10b1ec0e920eba15f3b22dc3c48ea1ac85.tar.gz mailman-f20e5d10b1ec0e920eba15f3b22dc3c48ea1ac85.tar.zst mailman-f20e5d10b1ec0e920eba15f3b22dc3c48ea1ac85.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. + """ |
