push
Browse files
main.py
CHANGED
|
@@ -2,6 +2,11 @@ from fastapi import FastAPI
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
-
|
| 6 |
-
def read_root():
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
+
@app.get("/")
|
| 6 |
+
async def read_root(logs: str = None):
|
| 7 |
+
if logs == "container":
|
| 8 |
+
# Handle the 'container' logs request
|
| 9 |
+
return {"message": "Container logs"}
|
| 10 |
+
else:
|
| 11 |
+
# Handle other cases or return a default message
|
| 12 |
+
return {"message": "Hello World"}
|