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 /app/apis.py | |
parent | f8b29478f5481b39225d77b630049f759a572ce7 (diff) |
added FastAPI support
Diffstat (limited to 'app/apis.py')
-rw-r--r-- | app/apis.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |