added route
@@ -12,6 +12,7 @@ from foglamp.services.core.api import scheduler as api_scheduler
from foglamp.services.core.api import statistics as api_statistics
from foglamp.services.core.api import backup_restore
from foglamp.services.core.api import update
+from foglamp.services.core.api import service
__author__ = "Ashish Jabble, Praveen Garg, Massimiliano Pinto"
__copyright__ = "Copyright (c) 2017-2018 OSIsoft, LLC"
@@ -77,6 +78,9 @@ def setup(app):
# Package Update on demand
app.router.add_route('PUT', '/foglamp/update', update.update_package)
+ # Service Registry Health Monitor
+ app.router.add_route('GET', '/foglamp/service', service.get_health)
+
# enable cors support
enable_cors(app)
