Skip to content

Commit 7fde3ca

Browse files
committed
added wwwhisper auth
1 parent 7ceda85 commit 7fde3ca

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ node_modules
1919
*.iml
2020
.DS_Store
2121
Thumbs.db
22+
environment.sh

app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var _ = require("lodash");
1111
var request = require('request');
1212
var moment = require('moment');
1313
var RSS = require('rss');
14+
var wwwhisper = require('connect-wwwhisper');
1415

1516
// config settings for the minisite
1617
var challengesEndpoint = process.env.CHALLENGES_ENDPOINT || "http://tc-search.herokuapp.com/challenges/v2/search?q=challengeName:Swiftlang";
@@ -46,6 +47,10 @@ app.engine('handlebars', hbs.engine);
4647
app.set('view engine', 'handlebars');
4748
app.set('port', port);
4849

50+
// wwwhisper
51+
app.use(wwwhisper());
52+
// app.use(wwwhisper(false));
53+
4954
app.use(favicon());
5055
app.use(logger('dev'));
5156
app.use(bodyParser.json());

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
"start": "node app.js"
77
},
88
"dependencies": {
9-
"express": "~3.4.8",
10-
"static-favicon": "~1.0.0",
11-
"morgan": "~1.0.0",
12-
"cookie-parser": "~1.0.1",
139
"body-parser": "~1.0.0",
10+
"connect-wwwhisper": "^0.1.9",
11+
"cookie-parser": "~1.0.1",
1412
"debug": "~0.7.4",
13+
"express": "~3.4.8",
1514
"express-handlebars": "*",
15+
"feed": "~0.2.6",
1616
"lodash": "~2.4.1",
1717
"moment": "~2.6.0",
18+
"morgan": "~1.0.0",
1819
"request": "~2.34.0",
1920
"rss": "~0.3.2",
20-
"feed": "~0.2.6"
21+
"static-favicon": "~1.0.0"
2122
}
2223
}

0 commit comments

Comments
 (0)