Mostly finished with backend data api poc

This commit is contained in:
KimLS
2017-01-24 22:11:13 -08:00
parent b6feb258b1
commit 729e3b4167
9 changed files with 28759 additions and 27 deletions
+5
View File
@@ -1,9 +1,14 @@
var endpoint = require('./endpoint.js');
var auth = require('../../core/jwt_auth.js').auth;
var sql = require('./sql.js');
var RegisterAPI = function(app, api) {
endpoint.Register(app, api, 'account', 'account', 'id');
//Can register custom controller actions here.
app.post('/api/data/account/search', auth, function (req, res) {
sql.Search(req, res, 'account', 'id', ['id', 'name']);
});
};
module.exports = {
+1 -1
View File
@@ -7,7 +7,7 @@ var RegisterAPI = function(app, api) {
//Can register custom controller actions here.
app.post('/api/data/item/search', auth, function (req, res) {
sql.Search(req, res, 'items', 'id', ['id', 'name']);
sql.Search(req, res, 'items', 'id', ['id', 'name', 'icon']);
});
};