updated docs
This commit is contained in:
@@ -19,9 +19,7 @@ if TYPE_CHECKING:
|
||||
prefix = "/available"
|
||||
|
||||
|
||||
async def check_endpoints_available(
|
||||
request: "Request"
|
||||
) -> Dict[str, Any]:
|
||||
async def check_endpoints_available(request: "Request") -> Dict[str, Any]:
|
||||
"""
|
||||
Check if endpoints are available.
|
||||
"""
|
||||
@@ -52,7 +50,7 @@ async def check_endpoint_available(
|
||||
print("data", data)
|
||||
data_dict = data.data
|
||||
endpoint_asked = data_dict.get("endpoint", None)
|
||||
|
||||
|
||||
if not endpoint_asked:
|
||||
raise HTTPExceptionApi(
|
||||
error_code="",
|
||||
@@ -81,10 +79,7 @@ async def check_endpoint_available(
|
||||
loc=get_line_number_for_error(),
|
||||
sys_msg="Endpoint not found",
|
||||
)
|
||||
return {
|
||||
"endpoint": endpoint_asked,
|
||||
"status": "OK"
|
||||
}
|
||||
return {"endpoint": endpoint_asked, "status": "OK"}
|
||||
|
||||
|
||||
AVAILABLE_CONFIG = RouteFactoryConfig(
|
||||
|
||||
Reference in New Issue
Block a user