mirror of https://github.com/nicolargo/glances
url_prefix do not work in Glances < 4.2.0 - Correct issue with mount #2912
parent
7f049669fb
commit
9c09d6b4a4
|
@ -279,7 +279,7 @@ class GlancesRestfulApi:
|
|||
router.add_api_route('/', response_class=HTMLResponse, endpoint=self._index)
|
||||
|
||||
# Statics files
|
||||
self._app.mount(urljoin(self.url_prefix, '/static'), StaticFiles(directory=self.STATIC_PATH), name="static")
|
||||
self._app.mount(self.url_prefix + '/static', StaticFiles(directory=self.STATIC_PATH), name="static")
|
||||
|
||||
logger.info(f"Get WebUI in {self.STATIC_PATH}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue