AstraOS commited on
Commit
0fd51b5
Β·
verified Β·
1 Parent(s): 37f6fb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -452,16 +452,17 @@ def execute_command(message):
452
 
453
  # ─────────────────────────────────────────────────── FastAPI ───
454
 
455
- from telegram_preview import router as telegram_preview_router
 
 
456
 
457
  app = FastAPI()
458
 
459
- # Mount the preview under /bot (change prefix if you like)
460
- app.include_router(telegram_preview_router)
461
 
462
- # @app.get("/")
463
- # def root():
464
- # return {"status": "ok"}
465
 
466
 
467
  @app.on_event("startup")
 
452
 
453
  # ─────────────────────────────────────────────────── FastAPI ───
454
 
455
+ # from telegram_preview import router as telegram_preview_router
456
+ import telegram_preview
457
+
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")