aboutsummaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'api.py')
-rw-r--r--api.py11
1 files changed, 11 insertions, 0 deletions
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))