senchalabs/connect — Issue #390: Does not route
Author: akidee
Created: 2011-10-09 08:56:18+00:00
State: open

Code (CoffeeScript):

```
logger = connect.logger()
bodyParser = connect.bodyParser()
errorHandler = connect.errorHandler({ dumpExceptions: on })
#gzip = connect.gzip()
#cache = connect.cache()

server = @server = connect.createServer()

server.use(
'/'
errorHandler
#gzip
bodyParser
(req, res) =>

res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' })
res.end('OK')
)

@server.listen(3000)
```

Result (http://127.0.0.1:3000/):
Cannot GET /