]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/server/falcon/server.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / nominatim / server / falcon / server.py
index 7478ec39c1275b9e51f896e1c753eed0a8b08e16..c11cf4a845de734f1f68319990ebb6b179ca40d1 100644 (file)
@@ -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('.'))