diff options
| author | Tom Harley | 2018-03-03 16:42:16 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-03 16:42:16 +0000 |
| commit | 652d328dc1d6605687cbd6858a3d27da1c126f7e (patch) | |
| tree | 93bab0513665714c3f20948e5f39428dea7c9ca0 /src/app.ts | |
| parent | Fix minor things (diff) | |
| download | medicine-652d328dc1d6605687cbd6858a3d27da1c126f7e.tar.gz medicine-652d328dc1d6605687cbd6858a3d27da1c126f7e.zip | |
Implement handling of unauthorised requests
Diffstat (limited to 'src/app.ts')
| -rw-r--r-- | src/app.ts | 4 |
1 files changed, 2 insertions, 2 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'; @@ -65,7 +65,7 @@ class App { } private errorware(): void { - // TODO: this.express.use(authRouter.unauthorisedErr); + this.express.use(unauthorisedErr); this.express.use(errorHandler); } |
