Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -292,6 +292,14 @@ def clear_session():
|
|
292 |
@app.get("/{path_name:path}")
|
293 |
async def catch_all(path_name: str):
|
294 |
return JSONResponse(status_code=404, content={"message": f"Route '{path_name}' not found"})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
|
296 |
|
297 |
@app.get("/test-match")
|
|
|
292 |
@app.get("/{path_name:path}")
|
293 |
async def catch_all(path_name: str):
|
294 |
return JSONResponse(status_code=404, content={"message": f"Route '{path_name}' not found"})
|
295 |
+
|
296 |
+
|
297 |
+
@app.get("/logs")
|
298 |
+
async def get_logs(logs: str = None):
|
299 |
+
if logs == "container":
|
300 |
+
# Implement the logic for fetching container logs
|
301 |
+
return JSONResponse(status_code=200, content={"message": "Here are your container logs"})
|
302 |
+
return JSONResponse(status_code=404, content={"message": "Log type not found"})
|
303 |
|
304 |
|
305 |
@app.get("/test-match")
|