diff options
| author | jw255 | 2018-03-04 16:06:18 +0000 |
|---|---|---|
| committer | jw255 | 2018-03-04 16:06:18 +0000 |
| commit | 46f6e6c7bf1d69d1b3257f6cc186326a57c2b51d (patch) | |
| tree | ebf45cb9030c23a0c88c8335050093dd02128ef8 /src/app.ts | |
| parent | now compiles. also added stubs for database testing (diff) | |
| download | medicine-46f6e6c7bf1d69d1b3257f6cc186326a57c2b51d.tar.gz medicine-46f6e6c7bf1d69d1b3257f6cc186326a57c2b51d.zip | |
started authenticating
Diffstat (limited to 'src/app.ts')
| -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); } |
