9 lines
267 B
Python
9 lines
267 B
Python
from flask import jsonify
|
|
from app.services.torrents import initiate_config
|
|
from . import api_bp
|
|
|
|
|
|
@api_bp.route("/api/toloka/<id>")
|
|
def toloka_torrent_route(id):
|
|
config = initiate_config()
|
|
return jsonify(config.toloka.get_torrent("https://toloka.to/" + id))
|