A bunch of work getting blueprints working
This commit is contained in:
1 parent
223a105be4
commit
d59e23fc4c
9 files changed
+47
-12
No files matched your search
@@ -0,0 +1,11 @@
|
||||
from flask import Blueprint, request, render_template
|
||||
|
||||
upload_photo_bp = Blueprint('upload_photo', __name__, url_prefix='/upload', template_folder='.')
|
||||
|
||||
@upload_photo_bp.route('/photo')
|
||||
def get_page():
|
||||
if request.method == "GET":
|
||||
return render_get(), 200
|
||||
|
||||
def render_get():
|
||||
return render_template('upload_photo.html')
|
||||
Reference in new issue
Block a user