mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
fix editor not using URL from env
This commit is contained in:
parent
265d29c275
commit
d084b546b2
2 changed files with 56 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Used for editor/editor's preview"""
|
||||
|
||||
import os
|
||||
import base64
|
||||
from flask import Blueprint, request, render_template
|
||||
|
||||
|
@ -7,7 +8,7 @@ editor_routes = Blueprint('simple_page', __name__, template_folder='templates')
|
|||
|
||||
@editor_routes.route("/editor")
|
||||
def editor():
|
||||
return render_template("editor/editor.html")
|
||||
return render_template("editor/editor.html", hostname=os.getenv("URL"))
|
||||
|
||||
@editor_routes.route("/preview/<b64>")
|
||||
@editor_routes.route("/preview/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue