Harsh Upadhyay
updated path in app.py.
f25c351
raw
history blame contribute delete
348 Bytes
import os
from fastapi import FastAPI
from starlette.middleware.wsgi import WSGIMiddleware
from backend.app import create_app
from backend.config import config
# Get environment from environment variable
env = os.environ.get('FLASK_ENV', 'development')
flask_app = create_app(config[env])
app = FastAPI()
app.mount("/", WSGIMiddleware(flask_app))