add wsgi entry point for falcon server

This commit is contained in:
Sarah Hoffmann 2023-03-28 15:05:52 +02:00
parent e717e349d0
commit c150ca4889

View 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('.'))