fix: RESTful API - HEAD request not supported on {version}/status as mentioned in docs

fixes #2841
This commit is contained in:
Bharath Vignesh J K 2024-06-18 05:36:04 +05:30
parent 8c520e1d94
commit 69c3a948ba

View File

@ -185,6 +185,7 @@ class GlancesRestfulApi:
router.add_api_route(
f'/api/{self.API_VERSION}/status',
status_code=status.HTTP_200_OK,
methods=['HEAD', 'GET'],
response_class=ORJSONResponse,
endpoint=self._api_status,
)