mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Add cleanup of var and scoping with even more cleanup
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user