diff --git a/gns3server/handlers/__init__.py b/gns3server/handlers/__init__.py index 55dc3c86..cd99ee1d 100644 --- a/gns3server/handlers/__init__.py +++ b/gns3server/handlers/__init__.py @@ -28,6 +28,21 @@ from gns3server.handlers.api.vpcs_handler import VPCSHandler from gns3server.handlers.api.config_handler import ConfigHandler from gns3server.handlers.api.server_handler import ServerHandler from gns3server.handlers.upload_handler import UploadHandler +from ..web.route import Route + +if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"): + from gns3server.handlers.api.iou_handler import IOUHandler + +class HomePage: + + @classmethod + @Route.get( + r"/", + description="Home page for GNS3Server", + api_version=None + ) + def index(request, response): + response.template("homepage.html") if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"): from gns3server.handlers.api.iou_handler import IOUHandler diff --git a/gns3server/templates/homepage.html b/gns3server/templates/homepage.html new file mode 100644 index 00000000..3297c2b5 --- /dev/null +++ b/gns3server/templates/homepage.html @@ -0,0 +1,18 @@ + +
+ +