Skip to content

Commit 48413e8

Browse files
authored
Update app.py
Updated
1 parent 37f2b9d commit 48413e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def generate_recommendation_cards(num_cards=3):
5151

5252
return recommendation_cards
5353

54+
@app.route("/api/recommendations")
55+
def api_recommendations():
56+
return jsonify(generate_recommendation_cards())
57+
5458
@app.route("/")
5559
def home():
5660
return render_template("index.html", recommendations=generate_recommendation_cards())

0 commit comments

Comments
 (0)