mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +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