mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-17 00:10:48 +03:00
API is not compatible with requests containing spcial/encoding char #2820
This commit is contained in:
parent
810b0ec488
commit
e371c8f39d
@ -262,7 +262,7 @@ class GlancesRestfulApi:
|
||||
endpoint=self._api_item_unit,
|
||||
)
|
||||
router.add_api_route(
|
||||
f'/api/{self.API_VERSION}/{{plugin}}/{{item}}/{{value}}',
|
||||
f'/api/{self.API_VERSION}/{{plugin}}/{{item}}/{{value:path}}',
|
||||
response_class=ORJSONResponse,
|
||||
endpoint=self._api_value,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user