remove(magnet): 删除磁力链接相关功能模块
- 移除 magnet_bp 蓝图及其路由配置 - 删除 app/__init__.py 中的 magnet_bp 导入和注册 - 移除 app/services/magnet_service.py 服务文件 - 从 requirements.txt 中删除 libtorrent 依赖 - 保留 Flask-CORS 但移除其他无关依赖项位置调整
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
from flask import Blueprint, Response, jsonify
|
||||
|
||||
from app.services.magnet_service import MagnetService
|
||||
|
||||
bp = Blueprint("magnet", __name__)
|
||||
|
||||
|
||||
@bp.route("/")
|
||||
def index():
|
||||
magnet_object = MagnetService()
|
||||
return jsonify({"code": 200, "message": magnet_object.to_torrent()})
|
||||
Reference in New Issue
Block a user