Skip to content
Commits on Source (1)
...@@ -155,11 +155,15 @@ def ping(): ...@@ -155,11 +155,15 @@ def ping():
@app.route( baseurl + '/version' ) @app.route( baseurl + '/version' )
def version(): def version():
from version import __version__ from version import __version__, __branch__, __commit__, __commiturl__, __treeurl__
return jsonify( { return jsonify( {
'error': False, 'error': False,
'version': __version__ } 'version': __version__,
) 'branch': __branch__,
'commit': __commit__,
'commiturl': __commiturl__,
'treeurl': __treeurl__
} )
################################################################################ ################################################################################
# App serving # App serving
......
__version__ = 'dev' __version__ = 'dev'
__branch__ = ''
__commit__ = ''
__commiturl__ = ''
__treeurl__ = ''