Commit 91c0f89a0860dcf2d4a9b75fb47cd7c5a08a144d

Authored by Nur Fajar Wibowo
1 parent 4c896a33cc
Exists in master

membetulkan url save inbox

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

lib/config.sample.json
... ... @@ -3,7 +3,7 @@
3 3 "usb_port": "/dev/ttyUSB0",
4 4 "modem_name": "CHANGE ME",
5 5 "node_port": "2110",
6   - "url_post": "http://localhost:2211",
  6 + "url_post": "http://localhost:2211/inbox",
7 7 "api_key": "746573206D6F64656D2074656C6D6F73656C20666C617368"
8 8 }
9 9 }
... ... @@ -100,7 +100,7 @@ function postIncomingMessage(nomor, pesan){
100 100 common.log("----------------------------post incoming message-------------------------");
101 101 pesan = pesan.replace(/\s+$/, '');
102 102 //let encodePesan = encodeURIComponent(pesan);
103   - let inboxUrl = config.core.url_post+"/inbox?";//msg="+encodePesan+"&number="+nomor;
  103 + let inboxUrl = config.core.url_post;//+"/inbox?";msg="+encodePesan+"&number="+nomor;
104 104 common.log("url 2211; "+inboxUrl);
105 105 let tryOptions = {
106 106 url: inboxUrl,