aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 355ad76..8f86717 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -4,7 +4,7 @@ import * as expressJwt from 'express-jwt';
import * as logger from 'morgan';
import * as passport from 'passport';
-import { default as authRouter } from './auth';
+import { unauthorisedErr, default as authRouter } from './auth';
import { RequestError, errorHandler } from './errors/errorware';
import FileRouter from './FileRouter';
@@ -77,6 +77,7 @@ class App {
private errorware(): void {
// TODO: this.express.use(authRouter.unauthorisedErr);
+ this.express.use(unauthorisedErr);
this.express.use(errorHandler);
}