diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |
