var express = require('express');
var router = express.Router();

router.get('/', function(req, res, next) {
	res.json({
		status: "ok",
		version: "1"
	});
});

router.get('/feedback/getList', global.apiCall, global.requireUser, global.getUserRecord, global.requireViewFeedback, function(req, res, next) {
	knex("feedback").select("feedbackId, msg, name").then(function(obj) {
		res.json({
			status: "ok",
			feedback: obj
		});	
	}).catch(function(e) {
		res.json({
			status: "error",
			error: "Unknown database error.",
			stack: e
		});	
	});
});

router.get('/feedback/get/:id', global.apiCall, global.requireUser, global.getUserRecord, global.requireViewFeedback, function(req, res, next) {
	res.json({
		status: "ok",
		version: "1"
	});
});

module.exports = router;

@@ -340,15 +340,19 @@
 ckId
+%22
 , 
+%22
 msg
+%22
 , 
+%22
 name
@@ -448,17 +448,16 @@
 unction(
-e
 ) %7B%0A%09%09re
@@ -524,21 +524,8 @@
 or.%22
-,%0A%09%09%09stack: e
 %0A%09%09%7D
@@ -675,32 +675,124 @@
 q, res, next) %7B%0A
+%09knex(%22feedback%22).where(%7B%0A%09%09feedbackId: req.params.id%0A%09%7D).select(%22*%22).then(function(obj) %7B%0A%09
 %09res.json(%7B%0A%09%09st
@@ -781,32 +781,33 @@
 %0A%09%09res.json(%7B%0A%09%09
+%09
 status: %22ok%22,%0A%09%09
@@ -802,36 +802,146 @@
 us: %22ok%22,%0A%09%09
-version: %221%22
+%09feedback: obj%5B0%5D%0A%09%09%7D);%0A%09%7D).catch(function() %7B%0A%09%09res.json(%7B%0A%09%09%09status: %22error%22,%0A%09%09%09error: %22Unknown database error.%22%0A%09%09%7D);%09
 %0A%09%7D);%0A%7D);%0A%0Am

Update api_admin.js