Skip to content

Commit

Permalink
Grouped routes for webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbasson committed Feb 1, 2024
1 parent 0fa0d67 commit 6aac52f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
trust_registry,
verifier,
webhooks,
websocket_endpoint,
)
from app.routes.admin import tenants
from app.routes.wallet import credentials as wallet_credentials
Expand Down Expand Up @@ -74,11 +75,10 @@ async def lifespan(_: FastAPI):
await WebsocketManager.disconnect_all()


webhook_routes = [webhooks, sse, websocket_endpoint]

trust_registry_routes = [trust_registry]
tenant_admin_routes = [
tenants,
sse,
]
tenant_admin_routes = [tenants] + webhook_routes
tenant_routes = [
connections,
definitions,
Expand All @@ -89,9 +89,7 @@ async def lifespan(_: FastAPI):
verifier,
wallet_credentials,
wallet_dids,
webhooks,
sse,
]
] + webhook_routes


def routes_for_role(role: str) -> list:
Expand Down

0 comments on commit 6aac52f

Please sign in to comment.