diff options
author | 2017-10-15 01:38:44 +0300 | |
---|---|---|
committer | 2017-10-14 22:41:31 +0000 | |
commit | e2f2060cbb7d14aeb1aff7fbca1408fe54aedbb1 (patch) | |
tree | 5f637d5076d0f0a87c4a24bd315395e0ab3adf23 /app/api/responders/resource/links.py | |
parent | 3c9696e010451484fabb143a542c8364a4538669 (diff) |
added schemes to support new ui link options + fix api per new schemes
Change-Id: I768233f13749d01d436c24c764cb903ca19d3d2a
Signed-off-by: Koren Lev <korenlev@gmail.com>
(cherry picked from commit 41ac4c4e9a6112d8c98472a1be60e4869814f549)
Diffstat (limited to 'app/api/responders/resource/links.py')
-rw-r--r-- | app/api/responders/resource/links.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/app/api/responders/resource/links.py b/app/api/responders/resource/links.py index bd0a022..d700bad 100644 --- a/app/api/responders/resource/links.py +++ b/app/api/responders/resource/links.py @@ -13,17 +13,16 @@ from bson.objectid import ObjectId class Links(ResponderBase): - def __init__(self): - super().__init__() - self.COLLECTION = 'links' - self.ID = '_id' - self.PROJECTION = { - self.ID: True, - "link_name": True, - "link_type": True, - "environment": True, - "host": True - } + + COLLECTION = 'links' + ID = '_id' + PROJECTION = { + ID: True, + "link_name": True, + "link_type": True, + "environment": True, + "host": True + } def on_get(self, req, resp): self.log.debug("Getting links from links") |