Adding a notification after sending

This commit is contained in:
Sébastien Thuret 2021-10-09 11:25:56 +02:00
parent 130aaecb76
commit b8f41c8d94
No known key found for this signature in database
GPG key ID: 4742E2D66933BB08
2 changed files with 31 additions and 1 deletions

View file

@ -613,6 +613,13 @@ def create_app(args):
def spec():
return jsonify(swag)
@app.route("/suggest", methods=["POST"])
@limiter.exempt
def suggest():
# TODO:
return jsonify({"success": True})
SWAGGER_URL = "/docs" # URL for exposing Swagger UI (without trailing '/')
API_URL = "/spec"