diff --git a/src/cornice/pyramidhook.py b/src/cornice/pyramidhook.py index 7ef351c4..86c3c881 100644 --- a/src/cornice/pyramidhook.py +++ b/src/cornice/pyramidhook.py @@ -181,6 +181,7 @@ def register_service_views(config, service): services["__cornice" + existing_route] = service else: services[prefix + service.path] = service + service.pyramid_route = route_name # before doing anything else, register a view for the OPTIONS method # if we need to