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
14
14
[mypy-uvicorn.*]
15
15
ignore_missing_imports = True
16
16
17
- [mypy-sqlalchemy.*]
18
- ignore_missing_imports = True
19
-
20
17
[mypy-_pytest.monkeypatch.*]
21
18
ignore_missing_imports = True
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ def __init__(
43
43
customizer (router )
44
44
45
45
@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 ()}
48
48
49
49
@router .options ("/env" , include_in_schema = include_in_openapi_schema )
50
50
@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__(
43
43
self .pyctuator_impl = pyctuator_impl
44
44
45
45
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 (
47
50
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url , False ),
48
51
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/env" , False ),
49
52
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/info" , False ),
@@ -54,4 +57,4 @@ def get_endpoints_data(self) -> EndpointsData:
54
57
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/threaddump" , False ),
55
58
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/logfile" , False ),
56
59
LinkHref (self .pyctuator_impl .pyctuator_endpoint_url + "/httptrace" , False ),
57
- ))
60
+ )
You can’t perform that action at this time.
0 commit comments