from flask import Blueprint, request from flask import render_template f = Blueprint('file', __name__, url_prefix='/file') @f.route('/c') def common_file(): return render_template('file/c.html') @f.route('/mp4') def mp4_file(): mp4_url = "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" return render_template('file/mp4.html', file=mp4_url) @f.route('/m3u8') def m3u8_file(): return render_template('file/m3u8.html')