Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,17 @@ def get_latest_version():
|
|
18 |
latest_version = "31.0" # Use snake_case for internal Python variables
|
19 |
return jsonify({'latestVersion': latest_version}) # Use camelCase in JSON response
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
if __name__ == '__main__':
|
23 |
subprocess.Popen(["python", "wk.py"]) # Start awake.py
|
|
|
18 |
latest_version = "31.0" # Use snake_case for internal Python variables
|
19 |
return jsonify({'latestVersion': latest_version}) # Use camelCase in JSON response
|
20 |
|
21 |
+
# API endpoint returning hardcoded features
|
22 |
+
@app.route('/api/features')
|
23 |
+
def get_features():
|
24 |
+
features = [
|
25 |
+
{"name": "π Fast", "description": "Quick response time with optimized performance."},
|
26 |
+
{"name": "π Secure", "description": "Built-in security mechanisms to protect data."},
|
27 |
+
{"name": "π Scalable", "description": "Easily scales with increasing user demand."},
|
28 |
+
{"name": "π User-Friendly", "description": "Simple and intuitive interface for users."}
|
29 |
+
]
|
30 |
+
return jsonify(features)
|
31 |
+
|
32 |
|
33 |
if __name__ == '__main__':
|
34 |
subprocess.Popen(["python", "wk.py"]) # Start awake.py
|