From 652d328dc1d6605687cbd6858a3d27da1c126f7e Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 3 Mar 2018 16:42:16 +0000 Subject: Implement handling of unauthorised requests --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app.ts') diff --git a/src/app.ts b/src/app.ts index 7776c02..4e35063 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'; @@ -65,7 +65,7 @@ class App { } private errorware(): void { - // TODO: this.express.use(authRouter.unauthorisedErr); + this.express.use(unauthorisedErr); this.express.use(errorHandler); } -- cgit v1.2.1