Squashed 'module/api/' content from commit 194c64c
git-subtree-dir: module/api
git-subtree-split: 194c64cfd7
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from flask import Flask, jsonify
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/api/health')
|
||||
def health():
|
||||
return jsonify({'status': 'ok', 'module': 'api'})
|
||||
|
||||
@app.route('/api/version')
|
||||
def version():
|
||||
return jsonify({'version': '1.0.0'})
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000)
|
||||
Reference in New Issue
Block a user