mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Merge branch '2.0release' into develop
This commit is contained in:
commit
7db7d43aea
1 changed files with 3 additions and 2 deletions
|
@ -622,7 +622,7 @@ class RESTServers(object):
|
|||
'''
|
||||
get all servers which report to this api-server.
|
||||
'''
|
||||
def GET(self):
|
||||
def GET(self, id=None):
|
||||
enable_crossdomain()
|
||||
|
||||
try:
|
||||
|
@ -632,7 +632,8 @@ class RESTServers(object):
|
|||
|
||||
data = []
|
||||
for node in self.__nodes:
|
||||
data.append(node.json_dump())
|
||||
if id == None or node.id == str(id) or node.device_id == str(id):
|
||||
data.append(node.json_dump())
|
||||
|
||||
return json.dumps(data)
|
||||
finally:
|
||||
|
|
Loading…
Reference in a new issue