mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
fix weird variable name in example
This commit is contained in:
parent
8a7a695836
commit
a71d264d45
|
|
@ -28,8 +28,8 @@ app.get('/', function(req, res){
|
||||||
// this to add a layer of abstraction
|
// this to add a layer of abstraction
|
||||||
// and make things a bit more declarative:
|
// and make things a bit more declarative:
|
||||||
|
|
||||||
function format(requestHandlerName) {
|
function format(path) {
|
||||||
var requestHandler = require(requestHandlerName);
|
var requestHandler = require(path);
|
||||||
return function(req, res){
|
return function(req, res){
|
||||||
res.format(requestHandler);
|
res.format(requestHandler);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user