ntdservices commited on
Commit
719cc14
Β·
verified Β·
1 Parent(s): 6354ec7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -91,6 +91,10 @@ def index():
91
  articles = get_rss_articles()
92
  return render_template("index.html", articles=articles)
93
 
 
 
 
 
94
  # ─────────────────── main ────────────────────────────
95
  if __name__ == "__main__":
96
  port = int(os.environ.get("PORT", 7860))
 
91
  articles = get_rss_articles()
92
  return render_template("index.html", articles=articles)
93
 
94
+ @app.route("/api/ping")
95
+ def ping():
96
+ return "pong", 200
97
+
98
  # ─────────────────── main ────────────────────────────
99
  if __name__ == "__main__":
100
  port = int(os.environ.get("PORT", 7860))