File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ git clone https://github.com/SystangoTechnologies/Koach.git
2424* [ koa-bodyparser] ( https://github.com/koajs/bodyparser )
2525* [ koa-generic-session] ( https://github.com/koajs/generic-session )
2626* [ koa-logger] ( https://github.com/koajs/logger )
27+ * [ koa-helmet] ( https://github.com/venables/koa-helmet )
28+ * [ koa-convert] ( https://github.com/koajs/convert )
2729* [ MongoDB] ( http://mongodb.org/ )
2830* [ Mongoose] ( http://mongoosejs.com/ )
2931* [ Passport] ( http://passportjs.org/ )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import session from 'koa-generic-session'
77import passport from 'koa-passport'
88import mount from 'koa-mount'
99import serve from 'koa-static'
10+ import helmet from 'koa-helmet'
1011import config from '../config'
1112import { errorMiddleware } from '../src/middleware'
1213
@@ -27,6 +28,7 @@ app.use = x => _use.call(app, convert(x))
2728mongoose . Promise = global . Promise
2829mongoose . connect ( config . database )
2930
31+ app . use ( helmet ( ) )
3032app . use ( logger ( ) )
3133app . use ( bodyParser ( ) )
3234app . use ( session ( ) )
Original file line number Diff line number Diff line change 4444 "koa-bodyparser" : " ^4.2.0" ,
4545 "koa-convert" : " ^1.2.0" ,
4646 "koa-generic-session" : " ^1.10.1" ,
47+ "koa-helmet" : " ^3.1.0" ,
4748 "koa-logger" : " ^2.0.0" ,
4849 "koa-mount" : " ^3.0.0" ,
4950 "koa-passport" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments