from flask import Flask, jsonify from flask_cors import CORS import subprocess app = Flask(__name__) CORS(app) # Enable CORS for all routes @app.route('/') def home(): return "" @app.route('/get_latest_version', methods=['GET']) def get_latest_version(): latest_version = "31.0" # Use snake_case for internal Python variables return jsonify({'latestVersion': latest_version}) # Use camelCase in JSON response # API endpoint returning hardcoded features @app.route('/api/features') def get_features(): features = [ {"name": "🚀 Fast", "description": "Quick response time with optimized performance."}, {"name": "🔒 Secure", "description": "Built-in security mechanisms to protect data."}, {"name": "📈 Scalable", "description": "Easily scales with increasing user demand."}, {"name": "👌 User-Friendly", "description": "Simple and intuitive interface for users."} ] return jsonify(features) if __name__ == '__main__': subprocess.Popen(["python", "wk.py"]) # Start awake.py app.run(host='0.0.0.0', port=7860)