Support / as basePath
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
39264fa56f
commit
3ecd83104a
@ -23,7 +23,9 @@ const picturesPath = config.get("picturesPath"),
|
|||||||
let basePath = config.get("basePath");
|
let basePath = config.get("basePath");
|
||||||
|
|
||||||
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
|
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
|
||||||
|
if (basePath == "//") {
|
||||||
|
basePath = "/";
|
||||||
|
}
|
||||||
console.log("Loading pictures out of: " + picturesPath);
|
console.log("Loading pictures out of: " + picturesPath);
|
||||||
console.log("Hosting server from: " + basePath);
|
console.log("Hosting server from: " + basePath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user