diff options
| author | Tom Harley | 2018-03-03 14:18:11 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-03 14:18:11 +0000 |
| commit | 11776b9665c1bc3e49cf602dfa069294a490d5fd (patch) | |
| tree | abed539acf263e6e5d45c82752de0c6d37a068fb /src/app.ts | |
| parent | Merge branch 'trh/gets' into trh/payload-checker (diff) | |
| download | medicine-11776b9665c1bc3e49cf602dfa069294a490d5fd.tar.gz medicine-11776b9665c1bc3e49cf602dfa069294a490d5fd.zip | |
Fix minor things
Diffstat (limited to 'src/app.ts')
| -rw-r--r-- | src/app.ts | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -36,7 +36,12 @@ class App { // Configure Express middleware. private middleware(): void { - this.express.use(expressJwt({secret: 'Mr Secret'}).unless({path: ['/cs3099group-be-4/login', '/cs3099group-be-4/_supported_protocols_'] })); + this.express.use(expressJwt({secret: 'Mr Secret'}) + .unless({path: [ + '/cs3099group-be-4/login', + '/cs3099group-be-4/_supported_protocols_' + ] }) + ); this.express.use(passport.initialize()); if (this.logEnabled) { this.express.use(logger('combined')); @@ -51,7 +56,7 @@ class App { defRouter.get('/', (req: ex.Request, res: ex.Response): void => { res.json({ message: 'Welcome to the CS3099 BE4 server!', - important : 'Endpoints start from /cs3099group-be-4/' + important: 'Endpoints start from /cs3099group-be-4/' }); }); this.express.use('/', defRouter); @@ -60,7 +65,7 @@ class App { } private errorware(): void { - //this.express.use(authRouter.unauthorisedErr); + // TODO: this.express.use(authRouter.unauthorisedErr); this.express.use(errorHandler); } |
