mansona / express-autoroute

Helper module to automatically load Express routes from a structured routes/ folder
MIT License
35 stars 10 forks source link

Update index.js #1

Closed JueLance closed 10 years ago

JueLance commented 11 years ago

When I used express-autoroute in Microsoft WebMatrix, the path returned from require.main.filename is not correct, so maybe we need get the path from current working directory. But I don't test it in Linux environment, I'm not sure it will also work well.

mansona commented 10 years ago

I've merged this manually with this commit https://github.com/Blooie/express-autoroute/commit/cf809f9a3734a6c2cb22cc023bb18b5d3e669c26

Had to do this because of the merge conflicts and the fact that this was a pull against master. All sorted now and i'll likely do a release to npm today.

You may need to update your package.json files because this is now going to be a 1.0.x release.

Thank you for contributing :+1: