feat: 更新截图服务接口路径以指向新的截图目录
This commit is contained in:
parent
12c66a9eb4
commit
5f45c5d079
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user