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:
@ -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']
|
||||
|
Reference in New Issue
Block a user