Skip to content

Commit a213937

Browse files
committed
cleanup: rm unused code
1 parent c168b88 commit a213937

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/stac_auth_proxy/app.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,6 @@ def create_app(settings: Optional[Settings] = None) -> FastAPI:
6262
collections_filter=settings.collections_filter,
6363
items_filter=settings.items_filter,
6464
)
65-
66-
# Configure security dependency for explicitely specified endpoints
67-
# for path_methods, dependencies in [
68-
# (settings.private_endpoints, [Security(auth_scheme.validated_user)]),
69-
# (settings.public_endpoints, []),
70-
# ]:
71-
# for path, methods in path_methods.items():
72-
# endpoint = (
73-
# openapi_handler
74-
# if path == settings.openapi_spec_endpoint
75-
# else proxy_handler.stream
76-
# )
77-
# app.add_api_route(
78-
# path,
79-
# endpoint=endpoint,
80-
# methods=methods,
81-
# dependencies=dependencies,
82-
# )
83-
8465
# Catchall for remainder of the endpoints
8566
app.add_api_route(
8667
"/{path:path}",

0 commit comments

Comments
 (0)