initial commit

This commit is contained in:
JJ Kasper
2018-05-17 14:31:05 -05:00
commit 2c90d2e7dd
79 changed files with 10684 additions and 0 deletions

8
util/basePath.js Normal file
View 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;