parent
ad423113ac
commit
d85f731457
1
app.js
1
app.js
|
|
@ -29,6 +29,7 @@ const debugApp = debug("lot-occupancy-system:app");
|
||||||
databaseInitializer.initializeDatabase();
|
databaseInitializer.initializeDatabase();
|
||||||
const __dirname = ".";
|
const __dirname = ".";
|
||||||
export const app = express();
|
export const app = express();
|
||||||
|
app.disable("X-Powered-By");
|
||||||
if (!configFunctions.getProperty("reverseProxy.disableEtag")) {
|
if (!configFunctions.getProperty("reverseProxy.disableEtag")) {
|
||||||
app.set("etag", false);
|
app.set("etag", false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
app.ts
3
app.ts
|
|
@ -48,10 +48,13 @@ const __dirname = ".";
|
||||||
|
|
||||||
export const app = express();
|
export const app = express();
|
||||||
|
|
||||||
|
app.disable("X-Powered-By");
|
||||||
|
|
||||||
if (!configFunctions.getProperty("reverseProxy.disableEtag")) {
|
if (!configFunctions.getProperty("reverseProxy.disableEtag")) {
|
||||||
app.set("etag", false);
|
app.set("etag", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// View engine setup
|
// View engine setup
|
||||||
app.set("views", path.join(__dirname, "views"));
|
app.set("views", path.join(__dirname, "views"));
|
||||||
app.set("view engine", "ejs");
|
app.set("view engine", "ejs");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue