diff options
author | nicolargo <nicolas@nicolargo.com> | 2024-02-17 11:19:09 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2024-02-17 11:19:09 +0100 |
commit | 951591ae2e205057720b4a2c49bdff5a8d29121e (patch) | |
tree | 605e705da973673ab4279f5feba6a5b9e1f348b2 | |
parent | a5249a18933bffa350cc68e15653e8f88a77276f (diff) |
url_prefix does not work on develop #2679
-rw-r--r-- | glances/outputs/glances_restful_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/outputs/glances_restful_api.py b/glances/outputs/glances_restful_api.py index 3b9054d1..322cc40b 100644 --- a/glances/outputs/glances_restful_api.py +++ b/glances/outputs/glances_restful_api.py @@ -85,7 +85,7 @@ class GlancesRestfulApi(object): # Change the default root path if self.url_prefix != '/': - self._app.include_router(APIRouter(prefix=self.url_prefix)) + self._app.include_router(APIRouter(prefix=self.url_prefix.rstrip('/'))) # Set path for WebUI self.STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'static/public') |