aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-03 14:18:11 +0000
committerTom Harley2018-03-03 14:18:11 +0000
commit11776b9665c1bc3e49cf602dfa069294a490d5fd (patch)
treeabed539acf263e6e5d45c82752de0c6d37a068fb /src/app.ts
parentMerge branch 'trh/gets' into trh/payload-checker (diff)
downloadmedicine-11776b9665c1bc3e49cf602dfa069294a490d5fd.tar.gz
medicine-11776b9665c1bc3e49cf602dfa069294a490d5fd.zip

Fix minor things

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/app.ts b/src/app.ts
index 83082a9..7776c02 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -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);
}