Skip to content

Commit 7559373

Browse files
committed
chore: rm unused items_filter_endpoints configuration
1 parent 433b887 commit 7559373

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,6 @@ The application is configurable via environment variables.
111111
}
112112
}
113113
```
114-
- `ITEMS_FILTER_ENDPOINTS`
115-
- Where to apply item filtering
116-
- **Type:** JSON object mapping regex patterns to HTTP methods
117-
- **Required:** No, defaults to the following:
118-
```json
119-
{
120-
"^/search$": ["GET", "POST"],
121-
"^/collections/([^/]+)/items$": ["GET", "POST"]
122-
}
123-
```
124114

125115
### Customization
126116

src/stac_auth_proxy/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ class Settings(BaseSettings):
6565

6666
# Filters
6767
items_filter: Optional[ClassInput] = None
68-
items_filter_endpoints: Optional[EndpointMethods] = {
69-
r"^/search$": ["GET", "POST"],
70-
r"^/collections/([^/]+)/items$": ["GET", "POST"],
71-
}
7268

7369
model_config = SettingsConfigDict()
7470

src/stac_auth_proxy/middleware/BuildCql2FilterMiddleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ async def receive_build_filter() -> Message:
7575
def _get_filter(self, path: str) -> Optional[Callable[..., Expr]]:
7676
"""Get the CQL2 filter builder for the given path."""
7777
endpoint_filters = [
78-
# TODO: Use collections_filter_endpoints & items_filter_endpoints
7978
(filters.is_collection_endpoint, self.collections_filter),
8079
(filters.is_item_endpoint, self.items_filter),
8180
(filters.is_search_endpoint, self.items_filter),

0 commit comments

Comments
 (0)