Skip to content

Commit

Permalink
Add method for search links (#236)
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Emanuele <rdemanuele@gmail.com>
  • Loading branch information
moradology and lossyrob authored Aug 18, 2021
1 parent 76deabd commit 58c668f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stac_fastapi/types/stac_fastapi/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ def _landing_page(
"type": MimeTypes.geojson,
"title": "STAC search",
"href": urljoin(base_url, "search"),
"method": "GET",
},
{
"rel": Relations.search.value,
"type": MimeTypes.json,
"title": "STAC search",
"href": urljoin(base_url, "search"),
"method": "POST",
},
],
stac_extensions=extension_schemas,
Expand Down

0 comments on commit 58c668f

Please sign in to comment.