from flask import Blueprint, render_template, request, send_file
from flask import current_app # current_app is only accessible within a request

trkwebapp = Blueprint('trkwebapp', __name__)

@trkwebapp.route('/')
def index():
    return render_template('index.html')

@trkwebapp.route('/get_trk')
def get_trk():
    return send_file('../data/BRCATLASB088_MNI_AF_long.trk', as_attachment=True, attachment_filename='test.trk', conditional=True, add_etags=True)
c3a70063167705db299392340b210f565a05e9c8
<mask token>


@trkwebapp.route('/')
def index():
    return render_template('index.html')


<mask token>

<mask token>


@trkwebapp.route('/')
def index():
    return render_template('index.html')


@trkwebapp.route('/get_trk')
def get_trk():
    return send_file('../data/BRCATLASB088_MNI_AF_long.trk', as_attachment=
        True, attachment_filename='test.trk', conditional=True, add_etags=True)

<mask token>
trkwebapp = Blueprint('trkwebapp', __name__)


@trkwebapp.route('/')
def index():
    return render_template('index.html')


@trkwebapp.route('/get_trk')
def get_trk():
    return send_file('../data/BRCATLASB088_MNI_AF_long.trk', as_attachment=
        True, attachment_filename='test.trk', conditional=True, add_etags=True)

from flask import Blueprint, render_template, request, send_file
from flask import current_app
trkwebapp = Blueprint('trkwebapp', __name__)


@trkwebapp.route('/')
def index():
    return render_template('index.html')


@trkwebapp.route('/get_trk')
def get_trk():
    return send_file('../data/BRCATLASB088_MNI_AF_long.trk', as_attachment=
        True, attachment_filename='test.trk', conditional=True, add_etags=True)

from flask import Blueprint, render_template, request, send_file
from flask import current_app # current_app is only accessible within a request

trkwebapp = Blueprint('trkwebapp', __name__)

@trkwebapp.route('/')
def index():
    return render_template('index.html')

@trkwebapp.route('/get_trk')
def get_trk():
    return send_file('../data/BRCATLASB088_MNI_AF_long.trk', as_attachment=True, attachment_filename='test.trk', conditional=True, add_etags=True)