From 9b17207debda743eafbb5b27c4393d8376bcdab7 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 31 Oct 2024 15:41:26 -0400 Subject: [PATCH] libked controller --- api/controller/cardsController.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/api/controller/cardsController.js b/api/controller/cardsController.js index 7661fd0..f7f9e96 100644 --- a/api/controller/cardsController.js +++ b/api/controller/cardsController.js @@ -42,11 +42,17 @@ const cardsControllers = { console.log(r); }); }, - acceptCardTerms: function (req, resp){ - - - - + acceptCardTerms: function (req, res){ + cards.acceptCardTerms(req, res, function (err, dist) { + if (err) { + res.send(err); + } + res.status(200).json({ + 'status': 'OK', + 'result': dist, + 'internal_return': 0, + }) + }); }, activateCard: function (req, res) { cards.activateCard(req, res, function (err, dist) {