Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating doglordsApi route created invalid JS #1

Open
cappslock opened this issue Jan 30, 2014 · 1 comment
Open

Generating doglordsApi route created invalid JS #1

cappslock opened this issue Jan 30, 2014 · 1 comment

Comments

@cappslock
Copy link
Contributor

I used the route generator to create a route called doglordsApi and this created a handler function named doglords-api. Which is fine, but then it puts this line in the router:

Router.prototype.doglords-api = require('./controllers/doglords-api.js');

Which will actually fail to run due to the - character.

@panthershark
Copy link
Member

changed dasherize to underscored. have not pushed to npm yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants