summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/api/federation.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/api/federation.py')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/api/federation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/api/federation.py b/packages/meshbay-hub/src/meshbay_hub/api/federation.py
index 755639e..e737a1c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/api/federation.py
+++ b/packages/meshbay-hub/src/meshbay_hub/api/federation.py
@@ -190,6 +190,7 @@ async def export_directory(
db: AsyncSession = Depends(get_db),
authorization: str = Header(...),
):
+ """This hub's public groups, for a peer hub presenting an MHP token."""
try:
await _verify_mhp_token(authorization.removeprefix("Bearer "), db)
except Exception as e:
@@ -232,6 +233,7 @@ async def receive_directory(
authorization: str = Header(...),
db: AsyncSession = Depends(get_db),
):
+ """A peer hub's public groups, pushed with a single-use MHP token."""
try:
payload = await _verify_mhp_token(
authorization.removeprefix("Bearer "), db, single_use=True)