Serve WebUI handlers and update-bundled-web-ui script, Ref: #1362

This commit is contained in:
ziajka
2018-06-26 12:09:08 +02:00
parent 6dc2ae8641
commit 0e1f2e26d0
7 changed files with 98 additions and 10 deletions

View File

@ -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()