Skip to content

Commit

Permalink
It's "context.route" instead of context.path
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Sep 16, 2024
1 parent c65da0e commit c7b57de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aikido_zen/background_process/routes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Exports class Routes
"""

from aikido_zen.helpers.logging import logger
from aikido_zen.api_discovery.update_route_info import update_route_info
from aikido_zen.api_discovery.get_body_info import get_body_info

Expand All @@ -19,7 +20,7 @@ def add_route(self, context):
"""
Adds your route
"""
method, path = context.method, context.path
method, path = context.method, context.route
key = route_to_key(method, path)

if self.routes.get(key):
Expand Down
2 changes: 1 addition & 1 deletion aikido_zen/background_process/routes/init_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(
content_type="application/x-www-form-urlencoded",
):
self.method = method
self.path = path
self.route = path
self.body = body
self.xml = xml
self.headers = {"CONTENT_TYPE": content_type}
Expand Down

0 comments on commit c7b57de

Please sign in to comment.