File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ node_modules
19
19
* .iml
20
20
.DS_Store
21
21
Thumbs.db
22
+ environment.sh
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ var _ = require("lodash");
11
11
var request = require ( 'request' ) ;
12
12
var moment = require ( 'moment' ) ;
13
13
var RSS = require ( 'rss' ) ;
14
+ var wwwhisper = require ( 'connect-wwwhisper' ) ;
14
15
15
16
// config settings for the minisite
16
17
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);
46
47
app . set ( 'view engine' , 'handlebars' ) ;
47
48
app . set ( 'port' , port ) ;
48
49
50
+ // wwwhisper
51
+ app . use ( wwwhisper ( ) ) ;
52
+ // app.use(wwwhisper(false));
53
+
49
54
app . use ( favicon ( ) ) ;
50
55
app . use ( logger ( 'dev' ) ) ;
51
56
app . use ( bodyParser . json ( ) ) ;
Original file line number Diff line number Diff line change 6
6
"start" : " node app.js"
7
7
},
8
8
"dependencies" : {
9
- "express" : " ~3.4.8" ,
10
- "static-favicon" : " ~1.0.0" ,
11
- "morgan" : " ~1.0.0" ,
12
- "cookie-parser" : " ~1.0.1" ,
13
9
"body-parser" : " ~1.0.0" ,
10
+ "connect-wwwhisper" : " ^0.1.9" ,
11
+ "cookie-parser" : " ~1.0.1" ,
14
12
"debug" : " ~0.7.4" ,
13
+ "express" : " ~3.4.8" ,
15
14
"express-handlebars" : " *" ,
15
+ "feed" : " ~0.2.6" ,
16
16
"lodash" : " ~2.4.1" ,
17
17
"moment" : " ~2.6.0" ,
18
+ "morgan" : " ~1.0.0" ,
18
19
"request" : " ~2.34.0" ,
19
20
"rss" : " ~0.3.2" ,
20
- "feed " : " ~0.2.6 "
21
+ "static-favicon " : " ~1.0.0 "
21
22
}
22
23
}
You can’t perform that action at this time.
0 commit comments