TahaFawzyElshrif commited on
Commit
66e8ac0
·
1 Parent(s): 14faaa0

add health indicator

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -76,6 +76,10 @@ def old_call(request: RequestModel):
76
 
77
  return {"Data": answer}
78
  """
 
 
 
 
79
 
80
  @app.post("/Message/Send/")
81
  def call(request: RequestModel):
 
76
 
77
  return {"Data": answer}
78
  """
79
+
80
+ @app.get("health")
81
+ def get_health():
82
+ return {"status": "ok"}
83
 
84
  @app.post("/Message/Send/")
85
  def call(request: RequestModel):