From 37a14b125f6b72a761720ec8aab2eda529928463 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Wed, 8 Dec 2021 11:35:42 -0700 Subject: [PATCH] remove custom static file directory --- hyperglass/api/__init__.py | 2 -- hyperglass/ui/nextdev.js | 1 - 2 files changed, 3 deletions(-) diff --git a/hyperglass/api/__init__.py b/hyperglass/api/__init__.py index ad337a0..d4ea895 100644 --- a/hyperglass/api/__init__.py +++ b/hyperglass/api/__init__.py @@ -45,7 +45,6 @@ WORKING_DIR = Path(__file__).parent EXAMPLES_DIR = WORKING_DIR / "examples" UI_DIR = STATE.settings.static_path / "ui" -CUSTOM_DIR = STATE.settings.static_path / "custom" IMAGES_DIR = STATE.settings.static_path / "images" EXAMPLE_DEVICES_PY = EXAMPLES_DIR / "devices.py" @@ -252,5 +251,4 @@ if STATE.params.docs.enable: app.openapi = _custom_openapi app.mount("/images", StaticFiles(directory=IMAGES_DIR), name="images") -app.mount("/custom", StaticFiles(directory=CUSTOM_DIR), name="custom") app.mount("/", StaticFiles(directory=UI_DIR, html=True), name="ui") diff --git a/hyperglass/ui/nextdev.js b/hyperglass/ui/nextdev.js index 6720320..27f45cc 100644 --- a/hyperglass/ui/nextdev.js +++ b/hyperglass/ui/nextdev.js @@ -13,7 +13,6 @@ const devProxy = { '/api/query/': { target: url + 'api/query/', pathRewrite: { '^/api/query/': '' } }, '/ui/props/': { target: url + 'ui/props/', pathRewrite: { '^/ui/props/': '' } }, '/images': { target: url + 'images', pathRewrite: { '^/images': '' } }, - '/custom': { target: url + 'custom', pathRewrite: { '^/custom': '' } }, }; const port = parseInt(process.env.PORT, 10) || 3000;