Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouped routes for webhooks #638

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ jobs:
repository: didx-xyz/charts
token: ${{ secrets.PAT }}
path: charts
# ref: ${{ steps.set_branch.outputs.result }} #
# ref: ${{ steps.set_branch.outputs.result }}

- name: Install dependencies
run: sudo apt-get install -y postgresql-client redis-tools
Expand Down
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
Loading