button to redirect to marp server

This commit is contained in:
dechert
2021-06-18 15:50:40 +02:00
parent 152efedf7a
commit 34314fe90c
3 changed files with 13 additions and 0 deletions

View File

@@ -118,6 +118,17 @@ def valid_csv(filename):
# # return "bla"
# return render_template("tagebuch_output.html", markdown_result=data, markdown_filename=filename)
def get_marp_url():
if config_parser.prod_mode:
return "https://marp.swaghausen.de"
else:
return "http://localhost:4100"
@app.route('/marp')
def redirect_to_marp():
return redirect(get_marp_url(), code=302)
# return get_marp_url()
@app.route(URL_BASE_PATH + 'download', methods=['GET'])
# @auth.login_required