Support / as basePath

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-07 12:25:03 -07:00
parent 39264fa56f
commit 3ecd83104a

View File

@ -23,7 +23,9 @@ const picturesPath = config.get("picturesPath"),
let basePath = config.get("basePath");
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
if (basePath == "//") {
basePath = "/";
}
console.log("Loading pictures out of: " + picturesPath);
console.log("Hosting server from: " + basePath);