Fix events stuff, improve errors

This commit is contained in:
Jonathan Cremin 2015-08-23 01:05:20 +01:00
parent 3091c6dff6
commit 652fe5c264
6 changed files with 48 additions and 16 deletions

View file

@ -46,6 +46,7 @@ router.use('/*',function* (next) {
} else {
if (!err.status) {
debug(err);
this.raven.captureError(err);
throw err;
} else {
this.status = err.status;
@ -73,4 +74,8 @@ router.get('/(.*)', function* () {
this.throw(404);
});
export const ws = new Router();
ws.all('/user', user.events);
export default router;