Add cleanup of var and scoping with even more cleanup

This commit is contained in:
Alf Hammerseth
2019-11-17 00:01:53 +01:00
parent 33e6220e43
commit e54a27b6d9
18 changed files with 335 additions and 327 deletions

View File

@@ -1,6 +1,21 @@
import * as path from "path";
import version from "../VERSION";
export const publicPath = path.join(__dirname, "public");
export const clientRoutingPath = path.resolve('server', 'routing/client');
console.log('rounting path: ', clientRoutingPath);
export const publicPath = path.resolve('server', 'public');
export const handlersPath = path.resolve('server', "handlers");
export const pathThumbnails = __dirname;
export const VERSION = version;
export const VERSION = version;
function checkCert() {
let secure = false;
try {
const cert_config = require(path.join(
__dirname, "../config/cert_config.js"));
secure = true;
} catch (err) {}
return secure;
}
export const certAvailble = checkCert();