summaryrefslogtreecommitdiff
path: root/api/main.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-03-17 13:48:15 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-03-17 13:48:15 +0200
commit98e375682a50f3cdeddc8e6af022d1e8d12f608d (patch)
tree22e68ab1daea17566c2a8b0d95e48d238c691c10 /api/main.py
parentab2efcde6a5fac062ace86aa1705dc47ce69f438 (diff)
file name fixes
Diffstat (limited to 'api/main.py')
-rw-r--r--api/main.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/api/main.py b/api/main.py
new file mode 100644
index 0000000..8068243
--- /dev/null
+++ b/api/main.py
@@ -0,0 +1,13 @@
+from fastapi import FastAPI
+from routers import get
+import pandas as pd
+
+app = FastAPI()
+
+#CORS STUFF HERE
+
+app.include_router(get.router)
+
+@app.get("/", tags=["Index"])
+def getIndex():
+ return {"Message": "Hello! add /docs for documentation"}