We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c7124 commit 0b79085Copy full SHA for 0b79085
.devcontainer/requirements.txt renamed to requirements.txt
src/server/server.py
@@ -0,0 +1,23 @@
1
+from flask import Flask, jsonify
2
+from flask_cors import CORS
3
+
4
+# app instance
5
+app = Flask(__name__)
6
+CORS(app)
7
8
+# /api/home
9
+@app.route("/api/home", methods=['GET'])
10
+def return_home():
11
+ return jsonify({
12
+ 'message':"Service Health: No issues."
13
+ })
14
15
+@app.route("/api/roles")
16
+def return_roles():
17
18
+ 'app_roles': ['editor', 'approver']
19
20
21
+if __name__ == "__main__":
22
+ # Remove the debug flag for prod release
23
+ app.run(debug=True, port=8080)
0 commit comments