Skip to content

Commit c4bc3f2

Browse files
committed
support get item endpoint
1 parent e07e92e commit c4bc3f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stac_auth_proxy/utils/filters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def is_collection_endpoint(path: str) -> bool:
4141
def is_item_endpoint(path: str) -> bool:
4242
"""Check if the path is an item endpoint."""
4343
# TODO: Expand this to cover all cases where an item filter should be applied
44-
return bool(re.compile(r"^(/collections/([^/]+)/items$|/search)").match(path))
44+
expr = r"^(/collections/([^/]+)/items(?:/[^/]+)?$)"
45+
return bool(re.compile(expr).match(path))
4546

4647

4748
def is_search_endpoint(path: str) -> bool:

0 commit comments

Comments
 (0)