initial commit
This commit is contained in:
8
util/basePath.js
Normal file
8
util/basePath.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// make sure basePath doesn't end with /
|
||||
let { basePath } = require('../config/host.json');
|
||||
const urlChars = basePath.split('');
|
||||
|
||||
if(basePath.length > 1 && urlChars.pop() === '/') {
|
||||
basePath = urlChars.join('');
|
||||
}
|
||||
module.exports = basePath;
|
||||
Reference in New Issue
Block a user