Skip to content

Commit 6e6297c

Browse files
committed
Removed unused /api/animal/<animal_id>/events
1 parent 63ba9d2 commit 6e6297c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/server/api/common_api.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@ def get_animals(matching_id):
206206
return result
207207

208208

209-
@common_api.route('/api/animal/<animal_id>/events', methods=['GET'])
210-
def get_animal_events(animal_id):
211-
result = {}
212-
animal_url = f"http://shelterluv.com/api/v1/animals/{animal_id}/events"
213-
event_details = requests.get(animal_url, headers={"x-api-key": SHELTERLUV_SECRET_TOKEN}).json()
214-
result[animal_id] = event_details["events"]
215-
return result
216-
217-
218209
@common_api.route('/api/person/<matching_id>/animal/<animal_id>/events', methods=['GET'])
219210
def get_person_animal_events(matching_id, animal_id):
220211
result = {}

0 commit comments

Comments
 (0)