Skip to content

Commit 3666611

Browse files
committed
fix: remove partial listing of collections from landing page (#495)
1 parent 86e65d0 commit 3666611

File tree

1 file changed

+0
-11
lines changed
  • stac_fastapi/core/stac_fastapi/core

1 file changed

+0
-11
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,6 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
201201
]
202202
)
203203

204-
collections = await self.all_collections(request=kwargs["request"])
205-
for collection in collections["collections"]:
206-
landing_page["links"].append(
207-
{
208-
"rel": Relations.child.value,
209-
"type": MimeTypes.json.value,
210-
"title": collection.get("title") or collection.get("id"),
211-
"href": urljoin(base_url, f"collections/{collection['id']}"),
212-
}
213-
)
214-
215204
# Add OpenAPI URL
216205
landing_page["links"].append(
217206
{

0 commit comments

Comments
 (0)