File size: 420 Bytes
6d1b0d9
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Adapter module so Uvicorn can import the ASGI app as `API.main:app`.

This simply re-exports the `app` defined in the project's top-level `main.py`.
"""
try:
    from main import app  # project root `main.py`
except Exception:
    # Fallback: add project root to path then import
    import os
    import sys
    sys.path.append(os.path.dirname(os.path.dirname(__file__)))
    from main import app

__all__ = ["app"]