diff options
Diffstat (limited to 'src/mailman/rest/root.py')
| -rw-r--r-- | src/mailman/rest/root.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py index 988c228e7..707504d1b 100644 --- a/src/mailman/rest/root.py +++ b/src/mailman/rest/root.py @@ -130,6 +130,13 @@ class SystemConfiguration: @public +class Pipelines: + def on_get(self, request, response): + resource = dict(pipelines=list(config.pipelines.keys())) + okay(response, etag(resource)) + + +@public class Reserved: """Top level API for reserved operations. @@ -171,6 +178,10 @@ class TopLevel: if len(segments) <= 2: return SystemConfiguration(*segments[1:]), [] return BadRequest(), [] + elif segments[0] == 'pipelines': + if len(segments) > 1: + return BadRequest(), [] + return Pipelines(), [] else: return NotFound(), [] |
