Private
Public Access
1
0

fix: reorder API endpoint testing sequence in scripts and documentation

This commit is contained in:
2025-12-04 13:30:21 +08:00
parent dbea04aa17
commit ca8c5d5ff5
4 changed files with 11 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Configuration
DEFAULT_BASE_URL="https://api.xcodecli.com"
DEFAULT_BASE_URL="https://api2.xcodecli.com"
CLAUDE_CONFIG_DIR="$HOME/.claude"
CLAUDE_SETTINGS_FILE="$CLAUDE_CONFIG_DIR/settings.json"
@@ -79,8 +79,8 @@ test_api_connection() {
local api_key="$1"
local test_urls=(
"https://api.xcodecli.com"
"https://api2.xcodecli.com"
"https://api.xcodecli.com"
)
print_info "Testing API connections..." >&2
@@ -206,8 +206,8 @@ main() {
Usage: $0 [OPTIONS]
This script automatically tests multiple API endpoints and selects the working one:
- https://api.xcodecli.com
- https://api2.xcodecli.com
- https://api.xcodecli.com
Options:
-k, --key KEY Set the API key