Skip to content

Commit

Permalink
Implement API route to return all Experiences
Browse files Browse the repository at this point in the history
  • Loading branch information
axsseldz committed Oct 2, 2024
1 parent c8fa456 commit 3a65afe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def experience():
Handle experience requests
'''
if request.method == 'GET':
return jsonify()
experiences = {}
for idx, exp in enumerate(data['experience']):
experiences[str(idx)] = exp.__dict__
return jsonify(experiences)

if request.method == 'POST':
return jsonify({})
Expand Down

0 comments on commit 3a65afe

Please sign in to comment.