flatiron/director — Issue #45: HTTP routing functions getting passed the route?
Author: saadiq
Created: 2011-11-16 20:15:13+00:00
State: open

Either this is a bug in the code of in the docs. Should the route name be available to the registered function? Right now it's coming out as undefined.

From the docs:
```function helloWorld(route) {
this.res.writeHead(200, { 'Content-Type': 'text/plain' })
this.res.end('hello world from (' + route + ')');
}```

When running the demo code and hitting `curl http://localhost:8080/hello`, the print statement comes out as:
```hello world from (undefined)```