Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

blueprint flask

from flask import Blueprint, jsonify

app_b_api = Blueprint("app_b", __name__)


@app_b_api.route("/b")
def home():
    return "Hello, World!"


@app_b_api.route("/health_b.json")
def health():
    return jsonify({"status": "UP"}), 200
Source by www.javacodemonk.com #
 
PREVIOUS NEXT
Tagged: #blueprint #flask
ADD COMMENT
Topic
Name
4+8 =