A bunch of work getting blueprints working
This commit is contained in:
15
blueprints/upload_photo/upload_photo.html
Normal file
15
blueprints/upload_photo/upload_photo.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Video Commander</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="text-center">Upload a Static Photo</h1>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
11
blueprints/upload_photo/upload_photo.py
Normal file
11
blueprints/upload_photo/upload_photo.py
Normal file
@@ -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