IW4M-Admin/Master/master/resources/version.py

10 lines
342 B
Python

from flask_restful import Resource
import json
class Version(Resource):
def get(self):
config = json.load(open('./master/config/master.json'))
return {
'current-version-stable' : config['current-version-stable'],
'current-version-prerelease' : config['current-version-prerelease']
}, 200