added info page

This commit is contained in:
Jan Friedli 2020-04-13 22:48:47 +02:00
parent 8a45eb2f53
commit baed99b5a1
No known key found for this signature in database
GPG key ID: F945FA2FCA30549D
5 changed files with 237 additions and 2 deletions

View file

@ -40,6 +40,13 @@ def create_app(test_config=None):
api = Api(app)
CORS(app, resources={r"/api/*": {"origins": utils.get_allow_origin_header_value()}})
@app.route('/info')
def info():
get_supported_extensions()
return render_template(
'info.html', extensions=get_supported_extensions()
)
@app.route('/download/<string:key>/<string:filename>')
def download_file(key: str, filename: str):
if filename != secure_filename(filename):