me / FlaskWebApp /FileHandler /controller.py
BinaryONe
InitialCommit
1f8085b
raw
history blame
1.01 kB
from flask import Blueprint, request, Response, redirect, url_for, jsonify, render_template, make_response, send_from_directory
from werkzeug.security import generate_password_hash
handler = Blueprint('handler',
__name__,
static_folder='./static',
template_folder='./templates')
@handler.route('/', methods=['GET'])
def Handler_Main():
data = {
"Name": "Amritananda Sadhukhan",
"Age": "23",
"Max_Sugar": "200",
"Min_Sugar": "100",
"Heart_Rate": "60"
}
return render_template("index.html", data=data)
@handler.route('/profile', methods=['GET'])
def Handler_Profile():
data = {
"Name": "Amritananda Sadhukhan",
"Age": "23",
"Max_Sugar": "200",
"Min_Sugar": "100",
"Heart_Rate": "60"
}
return render_template("profile.html", data=data)
@handler.route('/offline.html')
def offline():
return send_from_directory('templates', 'index.html')