'use strict';

const app = require('./app');
require('./api.js')(app);
require('./static.js')(app);

const PORT = process.env.PORT || 4000;

app.listen(PORT, () => {
  console.log(`App listening on port ${PORT}!`);
});

'use strict';

const app = require('./app');

// remove the automatically added `X-Powered-By` header
app.disable('x-powered-by');

require('./api.js')(app);
require('./static.js')(app);

const PORT = process.env.PORT || 4000;

app.listen(PORT, () => {
  console.log(`App listening on port ${PORT}!`);
});

Remove the `X-Powered-By` header added by Express
Remove the `X-Powered-By` header added by Express

The `X-Powered-By` header provides no real benefit and also leaks
information about the design of the underlying system that may be
useful to attackers.
