Files
quectel-rgmii-toolkit/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/experimental/fetch_interpretations.sh
2025-08-13 21:31:20 -04:00

21 lines
472 B
Bash
Executable File

#!/bin/sh
# Simple script to fetch interpreted QCAINFO results
INTERPRETED_FILE="/tmp/interpreted_result.json"
# Set content type for JSON
echo "Content-Type: application/json"
echo "Access-Control-Allow-Origin: *"
echo "Access-Control-Allow-Methods: GET, POST, OPTIONS"
echo "Access-Control-Allow-Headers: Content-Type"
echo ""
# Check if file exists
if [ ! -f "$INTERPRETED_FILE" ]; then
echo "[]"
exit 0
fi
# Return the JSON content
cat "$INTERPRETED_FILE"