examples: remove reference to app.router in static-files

closes #1974
This commit is contained in:
Roman Shtylman 2014-03-12 10:27:10 -04:00
parent 3bbcbfdcf9
commit 3ea3250dbe

View File

@ -29,14 +29,6 @@ app.use('/static', express.static(__dirname + '/public'));
// this will allow "GET /style.css" instead of "GET /css/style.css":
app.use(express.static(__dirname + '/public/css'));
// this examples does not have any routes, however
// you may `app.use(app.router)` before or after these
// static() middleware. If placed before them your routes
// will be matched BEFORE file serving takes place. If placed
// after as shown here then file serving is performed BEFORE
// any routes are hit:
app.use(app.router);
app.listen(3000);
console.log('listening on port 3000');
console.log('try:');