bigdatr / bigdatr-startr

Yeoman generator for quick-start apps
4 stars 1 forks source link

404 page should not be the index page #2

Closed atridgedcosta closed 9 years ago

atridgedcosta commented 9 years ago

https://github.com/bigdatr/bigdatr-startr/blob/master/generators/app/templates/server/_server.js#L43

When server is handling 404's, should not be sending the index html.

A case for this would be if /api/futureModule/testEndpoint didn't exist, do we need to send back html when most likely the expected response is JSON?

allanhortle commented 9 years ago

resolved in #12