ntdservices commited on
Commit
744062d
·
verified ·
1 Parent(s): 9e85a86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -289,6 +289,10 @@ def api_status():
289
  def api_incidents(url: str):
290
  return incidents_for(url, limit=100)
291
 
 
 
 
 
292
  if __name__ == "__main__":
293
  import uvicorn
294
  uvicorn.run(app, host="0.0.0.0", port=PORT)
 
289
  def api_incidents(url: str):
290
  return incidents_for(url, limit=100)
291
 
292
+ @app.get("/api/ping")
293
+ def api_ping():
294
+ return {"message": "pong"}
295
+
296
  if __name__ == "__main__":
297
  import uvicorn
298
  uvicorn.run(app, host="0.0.0.0", port=PORT)