mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Serve WebUI handlers and update-bundled-web-ui script, Ref: #1362
This commit is contained in:
1 parent
6dc2ae8641
commit
0e1f2e26d0
7 files changed
+98
-10
No files matched your search
@@ -29,6 +29,7 @@ import functools
|
||||
import time
|
||||
import atexit
|
||||
|
||||
from gns3server.utils.static import get_static_dir
|
||||
from .route import Route
|
||||
from ..config import Config
|
||||
from ..compute import MODULES
|
||||
@@ -274,6 +275,13 @@ class WebServer:
|
||||
m = module.instance()
|
||||
m.port_manager = PortManager.instance()
|
||||
|
||||
# adding static route
|
||||
self._app.router.add_static(
|
||||
'/static/',
|
||||
path=get_static_dir(),
|
||||
name='static'
|
||||
)
|
||||
|
||||
log.info("Starting server on {}:{}".format(self._host, self._port))
|
||||
|
||||
self._handler = self._app.make_handler()
|
||||
|
||||
Reference in new issue
Block a user