feat: public relay page updates
This commit is contained in:
parent
ae68f210cd
commit
db3ad2e32f
4 changed files with 102 additions and 20 deletions
1
views.py
1
views.py
|
|
@ -24,6 +24,7 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
|
|||
@nostrrelay_ext.get("/{relay_id}")
|
||||
async def nostrrelay(request: Request, relay_id: str):
|
||||
relay_public_data = await get_public_relay(relay_id)
|
||||
|
||||
if not relay_public_data:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue