Skip to content

Commit

Permalink
Updated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Sep 21, 2022
1 parent 31c9a6e commit 35d740a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def index():


@app.route("/posts", methods=["GET"])
def serve_data():
def get_data():
"""Returns forum post data"""
data = PostFactory.generate(5)
return jsonify(data)

0 comments on commit 35d740a

Please sign in to comment.