Fix events stuff, improve errors
This commit is contained in:
parent
3091c6dff6
commit
652fe5c264
6 changed files with 48 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue