button to redirect to marp server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user