mirror of
https://github.com/nicolargo/glances.git
synced 2024-09-11 12:47:14 +03:00
fix: RESTful API - HEAD request not supported on {version}/status
as mentioned in docs
fixes #2841
This commit is contained in:
parent
8c520e1d94
commit
69c3a948ba
@ -185,6 +185,7 @@ class GlancesRestfulApi:
|
|||||||
router.add_api_route(
|
router.add_api_route(
|
||||||
f'/api/{self.API_VERSION}/status',
|
f'/api/{self.API_VERSION}/status',
|
||||||
status_code=status.HTTP_200_OK,
|
status_code=status.HTTP_200_OK,
|
||||||
|
methods=['HEAD', 'GET'],
|
||||||
response_class=ORJSONResponse,
|
response_class=ORJSONResponse,
|
||||||
endpoint=self._api_status,
|
endpoint=self._api_status,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user