kids wallet
This commit is contained in:
@@ -22,6 +22,17 @@ var controllers = {
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
getUsersKidsWallets: function(req, res) {
|
||||
wallets.getuserkidswallet(req, res, function(err, dist) {
|
||||
if (err) {
|
||||
res.send(err);
|
||||
}
|
||||
// res.json(dist);
|
||||
res.status(200).json({'status': 'OK', 'internal_return': 0, 'result_list': dist.result,'total_record': dist.total_record })
|
||||
});
|
||||
},
|
||||
|
||||
getUsersEscrows: function(req, res) {
|
||||
wallets.getescrows(req, res, function(err, dist) {
|
||||
if (err) {
|
||||
|
||||
@@ -9,6 +9,9 @@ module.exports = function(app) {
|
||||
app.route('/getwallets')
|
||||
.get(controller.getUsersWallets);
|
||||
|
||||
app.route('/getkidswallets')
|
||||
.get(controller.getUsersKidsWallets);
|
||||
|
||||
app.route('/getescrows')
|
||||
.get(controller.getUsersEscrows);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user