Skip to content

Commit 0b79085

Browse files
committed
Moved requirements for python libs
1 parent 11c7124 commit 0b79085

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
File renamed without changes.

src/server/server.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
return jsonify({
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

Comments
 (0)