We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637a505 commit 5edde8fCopy full SHA for 5edde8f
config/main.js
@@ -8,10 +8,18 @@ var express = require('express'),
8
flash = require('express-flash'),
9
expressValidator = require('express-validator'),
10
cors = require('cors');
11
+var artificialDelay = 0;
12
13
// configure app settings
14
module.exports = function(app, ini) {
15
16
+ // add an artificial delay for debug
17
+ if (artificialDelay) {
18
+ app.use(function(req,res,next) {
19
+ setTimeout(next, artificialDelay)
20
+ });
21
+ }
22
+
23
// must use cookieParser before express Session
24
app.use(cookieParser());
25
app.use(expressSession({
0 commit comments