Skip to content

Commit

Permalink
Grouped routes for webhooks (#638)
Browse files Browse the repository at this point in the history
* Grouped routes for webhooks

* Trigger deploy
  • Loading branch information
wdbasson authored Feb 2, 2024
1 parent 0fa0d67 commit 93db60f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
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

0 comments on commit 93db60f

Please sign in to comment.