the application was rewritten a bit to be more testable

This commit is contained in:
Martin
2016-06-28 18:59:20 +02:00
parent 27542b9ebb
commit 2edf0ba8b0
14 changed files with 122 additions and 54 deletions
+11
View File
@@ -0,0 +1,11 @@
from flask import Blueprint, jsonify
mod = Blueprint('server', __name__, url_prefix='/')
@mod.route("/", methods=["GET"])
def status():
data = {
'version': '0.0.1',
'status': 'ok'
}
return jsonify(data)