From 167befc8ed6fd8e327b4554f6716bbc1d7f3531b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 5 Jun 2021 18:46:08 +0530 Subject: added FastAPI support --- api.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 api.py (limited to 'api.py') diff --git a/api.py b/api.py new file mode 100644 index 0000000..35f902c --- /dev/null +++ b/api.py @@ -0,0 +1,11 @@ +from app import app as flask_app +from fastapi import Body, FastAPI +from fastapi.middleware.wsgi import WSGIMiddleware +from pydantic import BaseModel + + +app = FastAPI(title="SaaS-in-a-Flask",description="Sample API", version="0.1") + +from app import apis + +app.mount("/", WSGIMiddleware(flask_app)) -- cgit v1.2.3