diff --git a/pytorrent/routes/_shared.py b/pytorrent/routes/_shared.py index 6321263..37f69bd 100644 --- a/pytorrent/routes/_shared.py +++ b/pytorrent/routes/_shared.py @@ -18,7 +18,8 @@ import queue import threading from pathlib import Path from urllib.parse import quote -from flask import Blueprint, jsonify, request, abort, send_file, redirect, Response, stream_with_context +from flask import Blueprint, jsonify, request, abort, send_file, redirect, Response, stream_with_context, url_for +# Note: url_for is exported through this shared module for API routes that build temporary in-app links. from ..config import DB_PATH, JOBS_RETENTION_DAYS, SMART_QUEUE_HISTORY_RETENTION_DAYS, LOG_RETENTION_DAYS, WORKERS, PYTORRENT_TMP_DIR from ..db import connect, utcnow from ..services.auth import current_user_id as default_user_id, current_user, list_users, save_user, delete_user, login_user, logout_user, enabled as auth_enabled, require_profile_write