chore: code format
This commit is contained in:
parent
8678090e7b
commit
ebada934b0
6 changed files with 32 additions and 29 deletions
8
views.py
8
views.py
|
|
@ -24,12 +24,12 @@ 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,
|
||||
detail="Cannot find relay",
|
||||
)
|
||||
status_code=HTTPStatus.NOT_FOUND,
|
||||
detail="Cannot find relay",
|
||||
)
|
||||
|
||||
if request.headers.get("accept") == "application/nostr+json":
|
||||
return JSONResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue