Geek7 commited on
Commit
1567f17
·
verified ·
1 Parent(s): 9103974

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, jsonify
2
+ from flask_cors import CORS
3
+
4
+ app = Flask(__name__)
5
+ CORS(app) # Enable CORS for all routes
6
+
7
+ @app.route('/get_latest_version', methods=['GET'])
8
+ def get_latest_version():
9
+ return jsonify({'latest_version': '2.5'})
10
+
11
+ if __name__ == '__main__':
12
+ app.run(debug=True)