2018-04-19 01:48:14 -04:00
|
|
|
from flask_restful import Resource
|
2018-05-24 22:39:03 -04:00
|
|
|
import json
|
2018-04-19 01:48:14 -04:00
|
|
|
|
|
|
|
class Version(Resource):
|
|
|
|
def get(self):
|
2018-05-24 22:39:03 -04:00
|
|
|
config = json.load(open('./master/config/master.json'))
|
2018-04-19 01:48:14 -04:00
|
|
|
return {
|
|
|
|
'current-version-stable' : config['current-version-stable'],
|
|
|
|
'current-version-prerelease' : config['current-version-prerelease']
|
|
|
|
}, 200
|