Skip to content

Commit

Permalink
fix(core): Read as JSON the request, to parse the body.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemonge committed Nov 15, 2016
1 parent 966b90a commit 54260bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions green-tomato.js
Expand Up @@ -2,16 +2,17 @@
/* eslint-env es6 */
/* eslint-disable no-unused-vars */

const Q = require('q');
const Hoxy = require('hoxy');
const Mongoose = require('mongoose');
var Q = require('q');
var Hoxy = require('hoxy');
var Mongoose = require('mongoose');
Mongoose.Promise = require('q').Promise;
const Prettyjson = require('prettyjson');
const _ = require('lodash');
const __ = require('./lodash-like.js');
const Child_process = require('child_process');
var mongoDB;

exports.version = require('./package.json').version;
exports.serve = function(configParams) {
var servicesShemaModel =
{
Expand Down Expand Up @@ -139,6 +140,7 @@ exports.serve = function(configParams) {
if (configParams.forceCache) {
proxy.intercept({
phase: 'request',
as: 'json',
method: method
}, requestInterceptor);
} else {
Expand Down

0 comments on commit 54260bd

Please sign in to comment.