I'm relatively new to NodeJS, so forgive my ignorance in this regard. This is more than likely my own lack of knowledge, but I can't figure out what I'm doing wrong.
As I understand it, the exports.json() method should allow me to output a directory listing as a JSON object. Is that correct? If so, how would I go about doing that? I'm using purely connect in this case.
hmm there may be a bug, ill take a look
added some tests, and confirmed that it's fine:
GET / .json