from flask import Blueprint, render_template bp = Blueprint('main', __name__, url_prefix='/') @bp.route('/', methods=('GET',)) def index(): return render_template('index.html') @bp.route('/health', methods=('GET',)) def health(): return {'message': 'Healthy'}