Skip to content

Commit

Permalink
refactor: reuse app.mount to add asyncapi url
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Aug 3, 2024
1 parent 32b68db commit 4ef0d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faststream/asgi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(

self.routes = list(asgi_routes)
if asyncapi_path:
self.routes.append((asyncapi_path, make_asyncapi_asgi(self)))
self.mount(asyncapi_path, make_asyncapi_asgi(self))

def mount(self, path: str, route: "ASGIApp") -> None:
self.routes.append((path, route))
Expand Down

0 comments on commit 4ef0d06

Please sign in to comment.