File size: 348 Bytes
8397f09
 
 
f25c351
 
8397f09
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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))