From ec8814ea07af8cf09365c9d76c6dcf46ba10ec3b Mon Sep 17 00:00:00 2001 From: Stefanos Chaliasos Date: Wed, 1 Sep 2021 19:08:08 +0300 Subject: [PATCH] GET->POST --- README.md | 2 +- stitcher/api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 873b177..20176d5 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ echo "{ \ \"trans-dep2\": $(cat benchmark/micro/call-graphs/trans-dep2.json) \ }" > test.json -curl -X GET \ +curl -X POST \ -H "Content-type: application/json" \ -H "Accept: application/json" \ -d @test.json \ diff --git a/stitcher/api.py b/stitcher/api.py index 0eddc0d..39ee123 100644 --- a/stitcher/api.py +++ b/stitcher/api.py @@ -7,8 +7,8 @@ app = Flask(__name__) -@app.route("/stitch") -def hello(): +@app.route("/stitch", methods = ['POST']) +def stitch(): content = request.json stitcher = Stitcher([], False)