From 8bb7dc3212e9ba99053ec719005ea4d39090e68c Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Fri, 13 Dec 2024 10:05:41 +0100 Subject: [PATCH] allow access to voyager's Expert mode with QueryString --- source/server/routes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/server/routes/index.ts b/source/server/routes/index.ts index 43d13590..b7552860 100644 --- a/source/server/routes/index.ts +++ b/source/server/routes/index.ts @@ -170,7 +170,7 @@ export default async function createServer(config = defaultConfig) :Promise{ let {scene} = req.params; - let {lang} = req.query; + let {mode="Edit"} = req.query; let host = getHost(req); let referrer = new URL(req.get("Referrer")||`/ui/scenes/`, host); let thumb = new URL(`/scenes/${encodeURIComponent(scene)}/scene-image-thumb.jpg`, host); @@ -180,7 +180,7 @@ export default async function createServer(config = defaultConfig) :Promise