diff options
| author | Tom Harley | 2018-03-06 16:57:39 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-06 16:57:39 +0000 |
| commit | f38249b8c5c07b13a43f3b5dd9c3771881a1c9e0 (patch) | |
| tree | 049fb20ad99498d3c12280019c91db3e70ceea56 /src/app.ts | |
| parent | Remove console.log mentions in errorware.ts (diff) | |
| parent | fixed merge conflict (diff) | |
| download | medicine-f38249b8c5c07b13a43f3b5dd9c3771881a1c9e0.tar.gz medicine-f38249b8c5c07b13a43f3b5dd9c3771881a1c9e0.zip | |
Merge branch ‘trh/payload-checker’ of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/project-code into trh/payload-checker
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 { unauthorisedErr, default as authRouter } from './auth'; +import { unauthorisedErr, isAdmin, default as authRouter } from './auth'; import { RequestError, errorHandler } from './errors/errorware'; import FileRouter from './FileRouter'; @@ -61,7 +61,7 @@ class App { }); this.express.use('/', defRouter); this.express.use('/cs3099group-be-4', FileRouter); - this.express.use('/cs3099group-be-4', authRouter); + this.express.use('/cs3099group-be-4', authRouter); } private errorware(): void { |
