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)