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 680b32e commit 71e5ae1Copy full SHA for 71e5ae1
src/stac_auth_proxy/utils/filters.py
@@ -1,5 +1,6 @@
1
"""Utility functions."""
2
3
+import re
4
from urllib.parse import parse_qs, urlencode
5
6
from cql2 import Expr
@@ -29,4 +30,4 @@ def is_collection_endpoint(path: str) -> bool:
29
30
def is_item_endpoint(path: str) -> bool:
31
"""Check if the path is an item endpoint."""
32
# TODO: Expand this to cover all cases where an item filter should be applied
- return path == "/collection/{collection_id}/items"
33
+ return bool(re.compile(r"^/collections/([^/]+)/items$").match(path))
0 commit comments