Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit eb2f051

Browse files
authored
Add href back for Things resource. (#57)
1 parent ff90caa commit eb2f051

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

webthing/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def get(self):
140140
descriptions = []
141141
for thing in self.things.get_things():
142142
description = thing.as_thing_description()
143+
description['href'] = thing.get_href()
143144
description['links'].append({
144145
'rel': 'alternate',
145146
'href': '{}{}'.format(ws_href, thing.get_href()),

0 commit comments

Comments
 (0)