Merge branch 'master' into user-integration

This commit is contained in:
David Jay
2016-11-22 12:09:29 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ if (app.get('env') !== 'test') {
// APP MIDDLEWARE
//==============================================================================
app.set('trust proxy', 'loopback');
app.set('trust proxy', 1);
app.use(helmet());
app.use(bodyParser.json());
app.use('/client', express.static(path.join(__dirname, 'dist')));
@@ -52,7 +52,7 @@ Promise.all([
const updateComment = (store, comment) => {
fetch(`/api/v1/comments/${comment.get('id')}/status`, {
method: 'POST',
method: 'PUT',
headers: jsonHeader,
body: JSON.stringify({status: comment.get('status')})
})