Spaces:
Sleeping
Sleeping
File size: 314 Bytes
68a4a06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from flask import Flask, Response, json, jsonify, request
api = Flask(__name__)
@api.route("/", methods=["POST"])
def query() -> Response:
data = json.loads(request.data)
response_data = {"dummy": "response"}
response_data.update(data)
return jsonify(response_data)
api.run(host="localhost", port=3000) |