Skip to content

Commit 21267ab

Browse files
committed
OpenAPI 문서에서 새 타입의 URL만 표시되도록 수정
1 parent 8076f05 commit 21267ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyconkr/openapi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import typing
2+
3+
EndpointType = tuple[str, str, str, typing.Callable]
4+
5+
6+
def preprocessing_filter_spec(endpoints: typing.Iterable[EndpointType]) -> list[EndpointType]:
7+
return [endpoint for endpoint in endpoints if endpoint[0].startswith("/{version}/")]

0 commit comments

Comments
 (0)