We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07e92e commit c4bc3f2Copy full SHA for c4bc3f2
src/stac_auth_proxy/utils/filters.py
@@ -41,7 +41,8 @@ def is_collection_endpoint(path: str) -> bool:
41
def is_item_endpoint(path: str) -> bool:
42
"""Check if the path is an item endpoint."""
43
# 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))
+ expr = r"^(/collections/([^/]+)/items(?:/[^/]+)?$)"
45
+ return bool(re.compile(expr).match(path))
46
47
48
def is_search_endpoint(path: str) -> bool:
0 commit comments