mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 09:44:48 +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
|
# Change the default root path
|
||||||
if self.url_prefix != '/':
|
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
|
# Set path for WebUI
|
||||||
self.STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'static/public')
|
self.STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'static/public')
|
||||||
|
Loading…
Reference in New Issue
Block a user