qualora / api /index.py
prathamamritkar's picture
final6
4e60cba
Raw
History Blame Contribute Delete
333 Bytes
"""Vercel serverless entrypoint.
Exposes the existing Flask `app` from project root using the `api/` layout
required by Vercel Python runtime.
"""
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from app import app # noqa: E402,F401