Browse Source

Added comments in server.js

pull/1/head
Erik Römmelt 6 years ago
parent
commit
32b20cd1c1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      server.js

+ 2
- 2
server.js View File

*/ */


// Security // Security
app.disable ('x-powered-by'); // TODO: recherche warum?
app.disable ('x-powered-by'); // TODO: Disable Header information: Powerd by Express -> Information disclosure




/* /*
//app.use ('/api', api_routes); //app.use ('/api', api_routes);


// Static Files // Static Files
app.use (express.static(__dirname + '/public'));
app.use (express.static(__dirname + '/public')); // Allow server access to 'public' folder


// Other stuff is NOT authorized unless logged in // Other stuff is NOT authorized unless logged in
//app.use (authorize.genCheckAuthorized ('user')); //app.use (authorize.genCheckAuthorized ('user'));

Loading…
Cancel
Save