diff --git a/src/fabledassistant/routes/profile.py b/src/fabledassistant/routes/profile.py index 4359599..56ea9d2 100644 --- a/src/fabledassistant/routes/profile.py +++ b/src/fabledassistant/routes/profile.py @@ -59,3 +59,13 @@ async def clear_observations(): uid = get_current_user_id() await clear_learned_data(uid) return jsonify({"status": "ok"}) + + +@profile_bp.route("/observations", methods=["GET"]) +@login_required +async def list_observations(): + uid = get_current_user_id() + profile = await get_profile(uid) + raw = list(profile.observations_raw or []) + # Newest first, last 14 entries + return jsonify({"observations": list(reversed(raw[-14:]))})