vibetunnel/test-sessions-endpoint.sh
Peter Steinberger 99b77c9b53 feat: implement working HTTP server with debug panel
- Replace stub TunnelServerDemo with full Hummingbird HTTP server
- Add comprehensive debug settings view with server info and controls
- Implement API endpoint listing with interactive testing
- Add TTYForwardManager for tty-fwd integration
- Auto-start HTTP server on app launch on port 8080
- Show server status, port, and base URL in debug panel
- Add test buttons for GET endpoints with live response preview
- Include debug mode toggle and log level selector
- Add quick access to Console.app and Application Support
- Update bundle identifier to sh.vibetunnel.vibetunnel
- Add code signing configuration templates
2025-06-16 02:00:56 +02:00

15 lines
No EOL
463 B
Bash
Executable file

#!/bin/bash
echo "Testing /sessions endpoint..."
echo ""
# Test if the server is running and call the sessions endpoint
response=$(curl -s -w "\nHTTP_STATUS:%{http_code}" http://localhost:8080/sessions)
# Extract the body and status
body=$(echo "$response" | sed -n '1,/^HTTP_STATUS:/p' | sed '$d')
status=$(echo "$response" | grep "HTTP_STATUS:" | cut -d: -f2)
echo "HTTP Status: $status"
echo "Response Body:"
echo "$body" | jq . 2>/dev/null || echo "$body"