From 7d84d00884c8422a70931452bbf0fad547c48481 Mon Sep 17 00:00:00 2001 From: dongsikmin Date: Thu, 16 Jan 2025 15:31:04 +0900 Subject: [PATCH] Create test control API --- test control API | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test control API diff --git a/test control API b/test control API new file mode 100644 index 0000000..9ea0564 --- /dev/null +++ b/test control API @@ -0,0 +1,13 @@ +from flask import Flask, request, jsonify + +app = Flask(__name__) + +@app.route("/slack/events", methods=["POST"]) +def slack_events(): + data = request.json + + # URL Verification 처리 + if data.get("type") == "url_verification": + return jsonify({"challenge": data.get("challenge")}) + + return "OK", 200