feat: add redirect_paths

This commit is contained in:
Vlad Stan 2023-02-21 10:31:20 +02:00
parent 729f36e993
commit 8d316c4887

View file

@ -20,6 +20,16 @@ nostrrelay_static_files = [
}
]
redirect_paths = [
{
"from_path": "/",
"redirect_to_path": "/api/v1/relay-info",
"header_filters": [{
"accept": "application/nostr+json"
}]
}
]
scheduled_tasks: List[asyncio.Task] = []
def nostrrelay_renderer():