Skip to content

Commit

Permalink
GET->POST
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanosChaliasos committed Sep 1, 2021
1 parent 544f6b5 commit ec8814e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions stitcher/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec8814e

Please sign in to comment.