feat: Add endpoint to retrieve the current user's team and corresponding service logic

This commit is contained in:
MythEclipse
2025-10-27 17:44:13 +07:00
parent e77797d7bb
commit cb6eef2054
3 changed files with 53 additions and 0 deletions
+3
View File
@@ -84,6 +84,9 @@ test_team_endpoints() {
# test_api_endpoint "POST Leave Team" "POST" "/v1/teams/$created_team_id/leave" 200 "" true
# test_api_endpoint "POST Leave Current Team" "POST" "/v1/teams/leave-me" 200 "" true
# === Get My Team ===
test_api_endpoint "GET My Team" "GET" "/v1/teams/me" 200 "" true
# Delete team (cleanup)
test_api_endpoint "DELETE Team" "DELETE" "/v1/teams/delete/$created_team_id" 200 "" true
fi