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