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