Merge pull request #2842 from nicolargo/2841-glances-api-status-check-returns-error-405-method-not-allowed

fix: RESTful API - HEAD request not supported on `{version}/status` as mentioned in docs
This commit is contained in:
RazCrimson 2024-06-18 05:38:14 +05:30 committed by GitHub
commit f9915d93e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,
)