Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ app.use(

app.use(express.static(path.join(__dirname, 'public')));

// development only error handling
if (env == 'development') {
app.use(express.errorHandler());
}

// setup routes
require('./routes')(app);

// Must be after all the routes to catch errors.
app.use(express.errorHandler);

// Init server
var nodeServer = http.createServer(app);

Expand Down
Loading