aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorjw2552018-02-06 15:07:46 +0000
committerjw2552018-02-06 15:07:46 +0000
commitc43a1a3ab512ad24cfc603ac5e5273e8e9b30329 (patch)
treec4c7c475d28274df36e72d54f48088eae0473d74 /src/app.ts
parentstarted work on type checking (diff)
parentsome testing (diff)
downloadmedicine-c43a1a3ab512ad24cfc603ac5e5273e8e9b30329.tar.gz
medicine-c43a1a3ab512ad24cfc603ac5e5273e8e9b30329.zip

Merge branch ‘testing’ into trh/payload-checker

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 5ace143..7bbe31c 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -6,6 +6,7 @@ import FileRouter from './FileRouter';
class App {
public express
+ public log_enabled : boolean;
constructor () {
this.express = express()
@@ -15,7 +16,8 @@ class App {
// Configure Express middleware.
private middleware(): void {
- this.express.use(logger('combined'));
+ console.log(this.log_enabled);
+ if(this.log_enabled) this.express.use(logger('combined'));
this.express.use(bodyParser.json());
this.express.use(bodyParser.urlencoded({ extended: false }));
}