feat: add redirect_paths
This commit is contained in:
parent
729f36e993
commit
8d316c4887
1 changed files with 10 additions and 0 deletions
10
__init__.py
10
__init__.py
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue