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 --- app/apis.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/apis.py (limited to 'app/apis.py') diff --git a/app/apis.py b/app/apis.py new file mode 100644 index 0000000..df6ddd1 --- /dev/null +++ b/app/apis.py @@ -0,0 +1,9 @@ +from api import app + +from fastapi import Body, FastAPI +from fastapi.middleware.wsgi import WSGIMiddleware +from pydantic import BaseModel + +@app.get("/version") +async def API_Version(): + return {"message":app.version} \ No newline at end of file -- cgit v1.2.3