hydra-express
Advanced tools
Comparing version 1.4.8-experimental.2 to 1.4.8-experimental.3
@@ -179,3 +179,2 @@ /** | ||
}); | ||
return this.start(resolve, reject); | ||
@@ -313,3 +312,3 @@ } | ||
initService() { | ||
app.use(cors()); | ||
app.use(cors(Object.assign({}, this.config.cors))); | ||
app.use(responseTime()); | ||
@@ -370,4 +369,5 @@ | ||
app.use(bodyParser.json()); | ||
app.use(bodyParser.urlencoded({extended: false})); | ||
let bodyParserConfig = Object.assign({json: {}, urlencoded: {extended: false}}, this.config.bodyParser); | ||
app.use(bodyParser.json(bodyParserConfig.json)); | ||
app.use(bodyParser.urlencoded(bodyParserConfig.urlencoded)); | ||
@@ -374,0 +374,0 @@ this.registerMiddlewareCallback && this.registerMiddlewareCallback(); |
{ | ||
"name": "hydra-express", | ||
"version": "1.4.8-experimental.2", | ||
"version": "1.4.8-experimental.3", | ||
"description": "A module which wraps Hydra and ExpressJS to provide an out of the box microservice which can support API routes and handlers.", | ||
@@ -5,0 +5,0 @@ "author": { |
900293
734