def get(self):
"""Method to handle system configuration GET requests"""
try:
config = yield Config.find(limit=1)
# Return a 404 if not found.
if config is None:
abort(404, message={'error': "Could not get the system configuration"})
returnValue(marshal(config, self.fields))
except TimeoutError:
log.error("REST API timeout retrieving application {appeui}",
appeui=euiString(appeui))
评论列表
文章目录