Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from fastapi import FastAPI, HTTPException, Request, Response
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import FileResponse
from fastapi.responses import FileResponse, HTMLResponse
from slowapi import Limiter, _rate_limit_exceeded_handler
from slowapi.errors import RateLimitExceeded
from sqlalchemy.exc import OperationalError
Expand Down Expand Up @@ -1119,6 +1119,20 @@ def health(response: Response):
return {"status": "ok", "boot_id": _BOOT_ID}


@app.get(
"/api/browser-bootstrap",
response_class=HTMLResponse,
include_in_schema=False,
)
def browser_bootstrap():
"""Stable same-origin document for authenticated browser automation setup."""
return HTMLResponse(
"<!doctype html><meta charset=\"utf-8\">"
"<title>Möbius browser bootstrap</title>",
headers={"Cache-Control": "no-store"},
)


@app.get("/api/ready")
def ready(response: Response):
"""Readiness probe: 200 only when chat persistence can actually serve.
Expand Down
Loading