Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

blueprint flask

from flask import Blueprint, jsonify

app_a_api = Blueprint("app_a", __name__)


@app_a_api.route("/a")
def home():
    return "Hello, World!"


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