Added core to API listing
Change-Id: Ie85a0133be26d5e3f767d34142277c2f6fa93f88
diff --git a/xos/api/xosapi_helpers.py b/xos/api/xosapi_helpers.py
index b39ca22..90163e6 100644
--- a/xos/api/xosapi_helpers.py
+++ b/xos/api/xosapi_helpers.py
@@ -160,6 +160,11 @@
def list(self, request):
endpoints = {}
+
+ # If it is the root, add core
+ if(self.api_path == "api"):
+ endpoints['core'] = "http://" + request.get_host() + get_script_prefix() + self.api_path + "/core"
+
for view_url in self.view_urls:
method_name = view_url[1].split("/")[-1]
method_url = "http://" + request.get_host() + get_script_prefix() + self.api_path + "/" + method_name