mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-17 00:10:48 +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(
|
||||
f'/api/{self.API_VERSION}/status',
|
||||
status_code=status.HTTP_200_OK,
|
||||
methods=['HEAD', 'GET'],
|
||||
response_class=ORJSONResponse,
|
||||
endpoint=self._api_status,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user