Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from pydantic import BaseModel
|
|
3 |
import os
|
4 |
|
5 |
aa = os.getenv("a")
|
|
|
|
|
6 |
app = FastAPI()
|
7 |
print(aa)
|
8 |
# Initialize the arrays
|
@@ -22,7 +24,7 @@ def greet_json():
|
|
22 |
|
23 |
@app.post("/add/")
|
24 |
async def add(op: Operation):
|
25 |
-
if op.a ==
|
26 |
target_list = None
|
27 |
if op.b == 'Greet':
|
28 |
target_list = Greet
|
|
|
3 |
import os
|
4 |
|
5 |
aa = os.getenv("a")
|
6 |
+
passw = os.getenv("as")
|
7 |
+
|
8 |
app = FastAPI()
|
9 |
print(aa)
|
10 |
# Initialize the arrays
|
|
|
24 |
|
25 |
@app.post("/add/")
|
26 |
async def add(op: Operation):
|
27 |
+
if op.a == passw:
|
28 |
target_list = None
|
29 |
if op.b == 'Greet':
|
30 |
target_list = Greet
|