Q:

req.url for / in Connect

I have a simple connect server on my Node.js script and I want to use the req.url to detect if the user is requesting the / and then check if there was the right cookie on the request, if there is redirect to the dashboard, if not send the index.html. But what's the req.url when the user requests /?
PS: I tried using case "/": but it haven't worked

A:

You can use req.path instead, and the path will be /.

