1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

[master] make version info update live instead of requiring a restart in

This commit is contained in:
RaidMax
2018-05-24 21:39:03 -05:00
parent eb3b208e4f
commit 045260c648
5 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,9 @@
from flask_restful import Resource
from master import config
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']