improve /view naming
This commit is contained in:
8
files.py
8
files.py
@@ -549,8 +549,8 @@ def viewlist():
|
||||
return render_template("viewer.html", current=current, eids=eids, objs=objs, OPT=OPT )
|
||||
|
||||
@login_required
|
||||
@app.route("/new_view/<id>", methods=["GET"])
|
||||
def newview_img(id):
|
||||
@app.route("/view/<id>", methods=["GET"])
|
||||
def view(id):
|
||||
OPT=Options( request )
|
||||
objs = {}
|
||||
print( OPT )
|
||||
@@ -575,9 +575,9 @@ def newview_img(id):
|
||||
################################################################################
|
||||
@app.route("/view/<id>", methods=["POST"])
|
||||
@login_required
|
||||
def view_img(id):
|
||||
def view_img_post(id):
|
||||
OPT=Options( request )
|
||||
return redirect( "/new_view/" + id );
|
||||
return redirect( "/view/" + id );
|
||||
|
||||
# route called from front/end - if multiple images are being transformed, each transorm == a separate call
|
||||
# to this route (and therefore a separate transorm job. Each reponse allows the f/e to check the
|
||||
|
||||
Reference in New Issue
Block a user