From 5f45c5d07930d4a53375b367898949f0d5be57a7 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Fri, 6 Jun 2025 23:05:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84=E4=BB=A5?= =?UTF-8?q?=E6=8C=87=E5=90=91=E6=96=B0=E7=9A=84=E6=88=AA=E5=9B=BE=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- screenshots_flask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenshots_flask.py b/screenshots_flask.py index 2e0ee83..446711d 100644 --- a/screenshots_flask.py +++ b/screenshots_flask.py @@ -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/') +@app.route('/image/screenshots/') def serve_image(filename): file_path = SCREENSHOTS_DIR / filename