mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 18:30:01 +08:00
Merge branch 'master' into user-integration
This commit is contained in:
@@ -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')})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user