API is not compatible with requests containing spcial/encoding char #2820

This commit is contained in:
nicolargo 2024-06-08 18:52:30 +02:00
parent 810b0ec488
commit e371c8f39d

View File

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