summaryrefslogtreecommitdiff
path: root/src/mailman/rest/wsgiapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/wsgiapp.py')
-rw-r--r--src/mailman/rest/wsgiapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/rest/wsgiapp.py b/src/mailman/rest/wsgiapp.py
index 9bac53c71..3155ee510 100644
--- a/src/mailman/rest/wsgiapp.py
+++ b/src/mailman/rest/wsgiapp.py
@@ -76,7 +76,7 @@ class AdminWebServiceWSGIRequestHandler(WSGIRequestHandler):
class SetAPIVersion:
- """Falcon middleware object that sets the api_version on resources."""
+ """Falcon middleware object that sets the API on resources."""
def process_resource(self, request, response, resource):
# Set this attribute on the resource right before it is dispatched
@@ -88,7 +88,7 @@ class SetAPIVersion:
# resource path does not exist. This middleware method will still get
# called, but there's nothing to set the api_version on.
if resource is not None:
- resource.api_version = request.context.get('api_version')
+ resource.api = request.context.get('api')
class RootedAPI(API):