From 3a65afe2f2b470fc2dce32512c4607620de2931a Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 2 Oct 2024 12:39:56 -0700 Subject: [PATCH] Implement API route to return all Experiences --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 70efbd8..82eeed0 100644 --- a/app.py +++ b/app.py @@ -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({})