Source code for bitween.components.web.gui.views

from . import gui
from flask import render_template

from bitween.components import handles

from bitween.components import contact_shares

@gui.route('/', methods=['GET'])
[docs]def index(): """ return rendered template containing the own shares :return: """ return render_template('gui_index.html', torrents=handles.get_shares())
@gui.route('/search', methods=['GET'])