diff --git a/README.md b/README.md index 33fa463..c4900f7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ export PATH="$HOME/.local/bin:$PATH" uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload ``` -Abrir en navegador: `http://localhost:8000` +Abrir en navegador: `https://3d.consultoria-as.com` (o `http://localhost:8000` en desarrollo) ### Docker ```bash diff --git a/app/routers/models.py b/app/routers/models.py index 840aa1d..3f1d568 100644 --- a/app/routers/models.py +++ b/app/routers/models.py @@ -731,7 +731,7 @@ def get_thumbnail(model_id: int, db: Session = Depends(get_db)): def get_qr(model_id: int, db: Session = Depends(get_db)): model = db.query(Model3D).filter(Model3D.id == model_id).first() if not model: raise HTTPException(status_code=404, detail="Model not found") - url = f"http://192.168.10.104:8000/model/{model_id}" + url = f"https://3d.consultoria-as.com/model/{model_id}" qr = qrcode.QRCode(version=1, box_size=10, border=2) qr.add_data(url); qr.make(fit=True) img = qr.make_image(fill_color="#0f172a", back_color="#ffffff") diff --git a/static/detail.html b/static/detail.html index 7b11f7b..16dce5e 100644 --- a/static/detail.html +++ b/static/detail.html @@ -3,7 +3,8 @@ - Detalle - STL Repository + Detalle - PrintForge +