summaryrefslogtreecommitdiffstats
path: root/api/__init__.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-07-12 10:45:17 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-07-12 15:14:10 +0000
commitb6d8765f2acbeefeb8e8f756b2243e8bac2a06b6 (patch)
treecb2a91b5b52b1980cb8a6ebab192d5b61013fe42 /api/__init__.py
parent29484c3071028df6c897797706117082a4b8c3f5 (diff)
Change endpoint to url in API
There are come conflict with new architecture. Also it is more proper to use url as endpoint. Change-Id: Idce331e36d85d0720bbf3255dca29ba6022e18b2 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/__init__.py')
-rw-r--r--api/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/__init__.py b/api/__init__.py
index dda12aa07..4622802df 100644
--- a/api/__init__.py
+++ b/api/__init__.py
@@ -57,9 +57,9 @@ class ApiResource(Resource):
class Url(object):
- def __init__(self, url, endpoint):
+ def __init__(self, url, target):
super(Url, self).__init__()
self.url = url
- self.endpoint = endpoint
+ self.target = target
common_utils.import_modules_from_package("api.resources")