blueprint.py 317 B

123456789101112131415
  1. import asyncio
  2. import json
  3. import traceback
  4. import uuid
  5. from typing import Dict, Any
  6. from quart import Blueprint, jsonify, request
  7. server_bp = Blueprint("api", __name__, url_prefix="/api")
  8. @server_bp.route("/hello", methods=["GET"])
  9. async def _hello():
  10. return jsonify({"msg": "Hello, World! Hello Future!"})