Skip to content

Commit

Permalink
Change way of handling 404-pages
Browse files Browse the repository at this point in the history
Show 404 page since no other route was used. ni-c#110
  • Loading branch information
lichtteil committed Nov 17, 2014
1 parent ac80857 commit 21cb8ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions heimcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ requirejs([ 'http', 'connect', 'mongodb', 'path', 'express', 'node-conf', 'socke
app.get('plugin helper').getPluginList(function(err, plugins) {
app.locals.plugins = plugins;
app.set('plugins', plugins);
});

// 404 Not found
app.all('*', Routes.notFound);
// 404 Not found
app.use(Routes.notFound);

});
}
});
});

0 comments on commit 21cb8ed

Please sign in to comment.