diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 18:46:08 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 18:46:08 +0530 |
commit | 167befc8ed6fd8e327b4554f6716bbc1d7f3531b (patch) | |
tree | 41f38a0c6d794c4e975328acce99f6ea5decbc7c /api.py | |
parent | f8b29478f5481b39225d77b630049f759a572ce7 (diff) |
added FastAPI support
Diffstat (limited to 'api.py')
-rw-r--r-- | api.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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)) |