mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 01:35:23 +03:00
Merge branch 'issue2679' into develop
This commit is contained in:
commit
4df1464497
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user