Commit 4f1fba02 authored by Barry Warsaw's avatar Barry Warsaw

Start of owners top level resource.

parent c8811695
......@@ -29,6 +29,7 @@ from mailman.config import config
from mailman.core.constants import system_preferences
from mailman.core.system import system
from mailman.interfaces.listmanager import IListManager
from mailman.interfaces.usermanager import IUserManager
from mailman.model.uid import UID
from mailman.rest.addresses import AllAddresses, AnAddress
from mailman.rest.domains import ADomain, AllDomains
......@@ -233,6 +234,13 @@ class TopLevel:
user_id = segments.pop(0)
return AUser(user_id), segments
@child()
def owners(self, request, segments):
"""/<api>/owners"""
if len(segments) != 0:
return BadRequest(), []
@child()
def templates(self, request, segments):
"""/<api>/templates/<fqdn_listname>/<template>/[<language>]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment