feat: 更新截图服务接口路径以指向新的截图目录

This commit is contained in:
晓丰 2025-06-06 23:05:06 +08:00
parent 12c66a9eb4
commit 5f45c5d079

View File

@ -4,9 +4,9 @@ from pathlib import Path
app = Flask(__name__)
PROJECT_ROOT = Path(__file__).parent.resolve()
SCREENSHOTS_DIR = PROJECT_ROOT / "screenshots"
SCREENSHOTS_DIR = Path("/opt/ql/daily_com/bin/screenshots").resolve()
@app.route('/image/<path:filename>')
@app.route('/image/screenshots/<path:filename>')
def serve_image(filename):
file_path = SCREENSHOTS_DIR / filename