Skip to content

Commit

Permalink
impl get specific skill
Browse files Browse the repository at this point in the history
  • Loading branch information
16BitNarwhal committed Oct 2, 2024
1 parent c8fa456 commit 0f37548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def skill():
Handles Skill requests
'''
if request.method == 'GET':
index = request.args.get('index', type=int)
if index is not None and 0 <= index < len(data['skill']):
return jsonify(data['skill'][index])

return jsonify({})

if request.method == 'POST':
Expand Down

0 comments on commit 0f37548

Please sign in to comment.