mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 00:38:06 +00:00
remove custom static file directory
This commit is contained in:
parent
ec1727437d
commit
37a14b125f
2 changed files with 0 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue