mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 15:53:47 +00:00
Serve WebUI handlers and update-bundled-web-ui script, Ref: #1362
This commit is contained in:
@ -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