fix(coral-admin): updated queue endpoint

This commit is contained in:
Dan Zajdband
2016-11-07 12:21:27 -05:00
parent dfdd8ea6f8
commit adb2dc2054
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "./node_modules/.bin/webpack --config webpack.config.js --watch",
"build": "./node_modules/.bin/webpack --config webpack.config.js",
"start": "./node_modules/.bin/webpack-dev-server --config webpack.config.dev.js --inline --hot --content-base public --port 3142"
},
"keywords": [],
+2 -1
View File
@@ -3,13 +3,14 @@ const express = require('express');
const router = express.Router();
const defaultComment = {
_id: '23423423432aa',
body: 'This is a comment!',
name: 'John Doe',
createdAt: Date.now()
};
router.get('/', (req, res) => {
const status = req.query.type || 'pending';
const status = req.query.type;
res.json([Object.assign({}, defaultComment, {status})]);
});