Commit 70cc68382687a1f4ba46378cba3318d59eed8773
1 parent
9cd4db4f
Exists in
master
and in
1 other branch
update lg
Showing
2 changed files
with
21 additions
and
0 deletions
Show diff stats
app.js
| @@ -392,6 +392,8 @@ app.post('/privilege/v1/history/delete', require('./privilege').deleteCustomer); | @@ -392,6 +392,8 @@ app.post('/privilege/v1/history/delete', require('./privilege').deleteCustomer); | ||
| 392 | 392 | ||
| 393 | app.post('/v1/MVP/enq/getMobileOfferInventory/', require('./true').getMobileOfferInventory); | 393 | app.post('/v1/MVP/enq/getMobileOfferInventory/', require('./true').getMobileOfferInventory); |
| 394 | 394 | ||
| 395 | +app.post('/api/v1/LG-API/notifySubscription', require('./lg').notifySubscription); | ||
| 396 | + | ||
| 395 | app.get('/api/callback', require('./line').callback); | 397 | app.get('/api/callback', require('./line').callback); |
| 396 | 398 | ||
| 397 | app.get('/api/random/leader', function (req, res) { | 399 | app.get('/api/random/leader', function (req, res) { |
| @@ -0,0 +1,19 @@ | @@ -0,0 +1,19 @@ | ||
| 1 | +module.exports.notifySubscription = async (req, res) => { | ||
| 2 | + console.log('===== POST notifySubscription =====') | ||
| 3 | + console.log('url', req.originalUrl); | ||
| 4 | + console.log('headers', req.headers); | ||
| 5 | + console.log('query', req.query); | ||
| 6 | + console.log('params', req.params); | ||
| 7 | + console.log('body', req.body); | ||
| 8 | + | ||
| 9 | + | ||
| 10 | + let response = { | ||
| 11 | + "success":{ | ||
| 12 | + "code":20000, | ||
| 13 | + "message":"Success", | ||
| 14 | + "developerMessage":"Success" | ||
| 15 | + } | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + res.send(response) | ||
| 19 | +} | ||
| 0 | \ No newline at end of file | 20 | \ No newline at end of file |