mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:56:27 +00:00
update
This commit is contained in:
+1
-15
@@ -61,23 +61,9 @@ app.use(responseTime());
|
||||
|
||||
// ============================== ROUTES API ==============================
|
||||
app.get('/', async (req, res) => {
|
||||
let data = {
|
||||
card_number: '1234567890',
|
||||
amount: 10000,
|
||||
};
|
||||
|
||||
let chipperData = helper.encryptText(JSON.stringify(data));
|
||||
let decrypData = JSON.parse(helper.decryptText(chipperData));
|
||||
res.json({
|
||||
message: 'Welcome to Topup Online Service.',
|
||||
data: {
|
||||
text: '0nlinet0pupkci',
|
||||
chiper_text: helper.encryptText('0nlinet0pupkci'),
|
||||
chipper_data: chipperData,
|
||||
decrypt_data: decrypData,
|
||||
date: moment().format('YYYYMMDDHHmm'),
|
||||
secret_key: helper.encryptText('0nlinetopupDev'),
|
||||
},
|
||||
data: {},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user