AstraOS commited on
Commit
d9b3140
·
verified ·
1 Parent(s): 115199b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -458,11 +458,17 @@ import telegram_preview
458
 
459
  app = FastAPI()
460
 
461
- telegram_preview.include_in_app(app) # mounts / and /static
462
 
463
- @app.get("/")
 
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")