Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -458,11 +458,17 @@ import telegram_preview
|
|
458 |
|
459 |
app = FastAPI()
|
460 |
|
461 |
-
telegram_preview.include_in_app(app)
|
462 |
|
463 |
-
|
|
|
464 |
def health():
|
465 |
-
return {"status": "ok"
|
|
|
|
|
|
|
|
|
|
|
466 |
|
467 |
|
468 |
@app.on_event("startup")
|
|
|
458 |
|
459 |
app = FastAPI()
|
460 |
|
461 |
+
telegram_preview.include_in_app(app)
|
462 |
|
463 |
+
# Simple health‑check endpoint
|
464 |
+
@app.get("/health")
|
465 |
def health():
|
466 |
+
return {"status": "ok"}
|
467 |
+
|
468 |
+
# OPTIONAL: if you really want a startup hook, keep it complete:
|
469 |
+
# @app.on_event("startup")
|
470 |
+
# async def startup():
|
471 |
+
# print("Application started")
|
472 |
|
473 |
|
474 |
@app.on_event("startup")
|