Skip to content

Commit 1aba35c

Browse files
committed
fix: handle item view
1 parent 4469e3f commit 1aba35c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stac_auth_proxy/middleware/AuthenticationExtensionMiddleware.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def should_transform_response(self, request: Request) -> bool:
6565
# Match STAC catalog, collection, or item URLs with a single regex
6666
return bool(
6767
re.match(
68-
r"^(/|/collections(/[^/]+(/items/[^/]+)?)?|/search)$", request.url.path
68+
# catalog, collections, collection, items, item, search
69+
r"^(/|/collections(/[^/]+(/items(/[^/]+)?)?)?|/search)$",
70+
request.url.path,
6971
)
7072
)
7173

0 commit comments

Comments
 (0)