Produced by Araxis Merge on 4/2/2019 1:07:33 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Frontend\ars-app\fpps-app-server\server\routes\rejectClaims | reject-claims.js | Wed Mar 27 19:18:17 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\fpps-app-server\server\routes\rejectClaims | reject-claims.js | Fri Mar 29 17:55:14 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 170 |
Changed | 1 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | const expr ess = requ ire('expre ss'); | |
2 | const rout er = expre ss.Router( ); | |
3 | const rest = require ('../../re st/rest'); | |
4 | ||
5 | router.pos t('/', (re q, res) => { | |
6 | re st | |
7 | .pos tResource( | |
8 | proces s.env.END_ POINT_BASE _URI + pro cess.env.R EJECTED_CL AIMS, | |
9 | req.bo dy | |
10 | ) | |
11 | .the n(data => { | |
12 | res.st atus(data. response.s tatusCode) .json(data .responseB ody); | |
13 | }); | |
14 | }); | |
15 | module.exp orts = rou ter; | |
16 | ||
17 | // router. post("/", (req, res) => { | |
18 | // var r equestData = req.bod y.body; | |
19 | // conso le.log("Re quest body is " + JSON.strin gify(reque stData)); | |
20 | // getAc cessToken( | |
21 | // pro cess.env.E ND_POINT_B ASE_URI + process.en v.TOKEN_RE QUEST | |
22 | // ).the n(response => { | |
23 | // acc ess_token = "Bearer " + respon se["access _token"]; | |
24 | // con sole.log(" Inside nod e"); | |
25 | // get Resource( | |
26 | // a ccess_toke n, | |
27 | // p rocess.env .END_POINT _BASE_URI + process. env.REJECT ED_CLAIMS, | |
28 | // r equestData | |
29 | // ).t hen(respon se => { | |
30 | // r esponse.to String("ut f-8"); | |
31 | // c onsole.log ( | |
32 | // "Response is ------ --" + JSON .stringify (response) + "------ --" | |
33 | // ) , | |
34 | // res.statu s(200).jso n(response ); | |
35 | // }); | |
36 | // }); | |
37 | // }); | |
38 | ||
39 | // functio n getAcces sToken(url ) { | |
40 | // let f ullAuthent ication = "Basic " + btoa(user name + ":" + passwor d); | |
41 | // let a rgs = { | |
42 | // par ameters: { | |
43 | // g rant_type: "password ", | |
44 | // username: " AI ", | |
45 | // password: " AI " | |
46 | // }, | |
47 | // hea ders: { | |
48 | // A uthorizati on: fullAu thenticati on, | |
49 | // " Content-Ty pe": "appl ication/js on" | |
50 | // } | |
51 | // }; | |
52 | ||
53 | // let m akeRestCal l = functi on() { | |
54 | // ret urn new Pr omise(func tion(resol ve, reject ) { | |
55 | // c lient.post (url, args , function (data, res ponse) { | |
56 | // resolve(d ata); | |
57 | // } ); | |
58 | // }); | |
59 | // }; | |
60 | ||
61 | // let p romise = m akeRestCal l(); | |
62 | ||
63 | // retur n promise; | |
64 | // } | |
65 | ||
66 | // functio n getResou rce(access _token, ur l, request Data) { | |
67 | // var a rgs = { | |
68 | // hea ders: { | |
69 | // A uthorizati on: access _token, | |
70 | // " Content-Ty pe": "appl ication/js on" | |
71 | // }, | |
72 | // dat a: request Data | |
73 | // }; | |
74 | ||
75 | // const makeRestC all = func tion() { | |
76 | // ret urn new Pr omise(func tion(resol ve, reject ) { | |
77 | // c lient.post (url, args , function (data, res ponse) { | |
78 | // resolve(d ata); | |
79 | // } ); | |
80 | // }); | |
81 | // }; | |
82 | ||
83 | // let p romise = m akeRestCal l(); | |
84 | // retur n promise; | |
85 | // } | |
86 | ||
87 | // module. exports = router; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.