mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
add wsgi entry point for falcon server
This commit is contained in:
parent
e717e349d0
commit
c150ca4889
@ -101,3 +101,11 @@ def get_application(project_dir: Path,
|
||||
app.add_route(f"/{name}.php", endpoint)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
def run_wsgi() -> App:
|
||||
""" Entry point for uvicorn.
|
||||
|
||||
Make sure uvicorn is run from the project directory.
|
||||
"""
|
||||
return get_application(Path('.'))
|
||||
|
Loading…
Reference in New Issue
Block a user