File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,5 @@ ignore_missing_imports = True
1414[mypy-uvicorn.*]
1515ignore_missing_imports = True
1616
17- [mypy-sqlalchemy.*]
18- ignore_missing_imports = True
19-
2017[mypy-_pytest.monkeypatch.*]
2118ignore_missing_imports = True
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ def __init__(
4343 customizer (router )
4444
4545 @router .get ("/" , include_in_schema = include_in_openapi_schema , tags = ["pyctuator" ])
46- def get_endpoints () -> EndpointsData :
47- return self .get_endpoints_data ()
46+ def get_endpoints () -> object :
47+ return { "_links" : self .get_endpoints_links ()}
4848
4949 @router .options ("/env" , include_in_schema = include_in_openapi_schema )
5050 @router .options ("/info" , include_in_schema = include_in_openapi_schema )
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ def __init__(
4343 self .pyctuator_impl = pyctuator_impl
4444
4545 def get_endpoints_data (self ) -> EndpointsData :
46- return EndpointsData (EndpointsLinks (
46+ return EndpointsData (self .get_endpoints_links ())
47+
48+ def get_endpoints_links (self ):
49+ return EndpointsLinks (
4750 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url , False ),
4851 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/env" , False ),
4952 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/info" , False ),
@@ -54,4 +57,4 @@ def get_endpoints_data(self) -> EndpointsData:
5457 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/threaddump" , False ),
5558 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/logfile" , False ),
5659 LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/httptrace" , False ),
57- ))
60+ )
You can’t perform that action at this time.
0 commit comments