Geek7 commited on
Commit
36034ab
Β·
verified Β·
1 Parent(s): 3e0534c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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