Skip to content

Commit

Permalink
fix back-reference of dynamically created route for service by pyrami…
Browse files Browse the repository at this point in the history
…dhook
  • Loading branch information
fmigneault committed Mar 22, 2024
1 parent 677aa40 commit c9ea769
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cornice/pyramidhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9ea769

Please sign in to comment.