aboutsummaryrefslogtreecommitdiffstats
path: root/app/api/responders/resource/links.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/responders/resource/links.py')
-rw-r--r--app/api/responders/resource/links.py21
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")