dodavanje jos jedne rute
This commit is contained in:
4
main.py
4
main.py
@@ -10,6 +10,10 @@ def health():
|
|||||||
if not _healthy:
|
if not _healthy:
|
||||||
return {"status": "unhealthy"}, 503
|
return {"status": "unhealthy"}, 503
|
||||||
return {"status": "ok"}
|
return {"status": "ok"}
|
||||||
|
|
||||||
|
@app.get("/")
|
||||||
|
def root():
|
||||||
|
return {"message":"Hello iz mog Docker containere"}
|
||||||
|
|
||||||
@app.post("/break")
|
@app.post("/break")
|
||||||
def break_health():
|
def break_health():
|
||||||
|
|||||||
Reference in New Issue
Block a user