mirror of
https://github.com/wassname/talk.git
synced 2026-07-21 12:51:03 +08:00
fix(coral-admin): updated queue endpoint
This commit is contained in:
@@ -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": [],
|
||||
|
||||
@@ -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})]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user