10 lines
228 B
JavaScript
Executable File
10 lines
228 B
JavaScript
Executable File
const config = require("config");
|
|
|
|
let basePath = config.get("basePath");
|
|
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
|
|
if (basePath == "//") {
|
|
basePath = "/";
|
|
}
|
|
|
|
module.exports = basePath;
|