Skip to content

Commit e6ca439

Browse files
Fix broken affordance urls in server thing descriptions
1 parent be58f69 commit e6ca439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/labthings_fastapi/server/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def thing_descriptions(request: Request) -> Mapping[str, ThingDescription]:
301301
dictionaries.
302302
"""
303303
return {
304-
path: thing.thing_description(path, base=str(request.base_url))
305-
for path, thing in thing_server.things.items()
304+
name: thing.thing_description(name + "/", base=str(request.base_url))
305+
for name, thing in thing_server.things.items()
306306
}
307307

308308
@self.app.get("/things/")

0 commit comments

Comments
 (0)