From 11afce9bbfd1962cc0f7dc23af73ff60c10c7ca3 Mon Sep 17 00:00:00 2001
From: Clinton Alexander <admin@clintonio.com>
Date: Fri, 22 Jul 2016 12:44:42 +0100
Subject: [PATCH] Review fixes.

---
 docs/source/running-the-demos.rst                         | 2 +-
 .../r3corda/demos/api/irswebdemo/js/services/NodeApi.js   | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/source/running-the-demos.rst b/docs/source/running-the-demos.rst
index 85040eb372..8c86af17e4 100644
--- a/docs/source/running-the-demos.rst
+++ b/docs/source/running-the-demos.rst
@@ -102,7 +102,7 @@ can see the other terminals whilst you run this command!:
 IRS web demo
 ------------
 
-To install the web demo please follo these steps;
+To install the web demo please follow these steps;
 
 1. Install Node: https://nodejs.org/en/download/ and ensure the npm executable is on your classpath
 2. Open a terminal
diff --git a/src/main/resources/com/r3corda/demos/api/irswebdemo/js/services/NodeApi.js b/src/main/resources/com/r3corda/demos/api/irswebdemo/js/services/NodeApi.js
index b874a444a9..b228878369 100644
--- a/src/main/resources/com/r3corda/demos/api/irswebdemo/js/services/NodeApi.js
+++ b/src/main/resources/com/r3corda/demos/api/irswebdemo/js/services/NodeApi.js
@@ -27,7 +27,7 @@ define(['angular', 'lodash', 'viewmodel/Deal'], (angular, _, dealViewModel) => {
             }
 
             this.getDate = () => {
-                return load('date', $http.get('http://localhost:31338/api/irs/demodate')).then((resp) => {
+                return load('date', $http.get('/api/irs/demodate')).then((resp) => {
                     const parts = resp.data.split("-");
                     date = new Date(parts[0], parts[1] - 1, parts[2]); // JS uses 0 based months
                     return this.getDateModel(date);
@@ -54,13 +54,13 @@ define(['angular', 'lodash', 'viewmodel/Deal'], (angular, _, dealViewModel) => {
             };
 
             this.getDeals = () => {
-                return load('deals', $http.get('http://localhost:31338/api/irs/deals')).then((resp) => {
+                return load('deals', $http.get('/api/irs/deals')).then((resp) => {
                     return resp.data.reverse();
                 });
             };
 
             this.getDeal = (dealId) => {
-                return load('deal' + dealId, $http.get('http://localhost:31338/api/irs/deals/' + dealId)).then((resp) => {
+                return load('deal' + dealId, $http.get('/api/irs/deals/' + dealId)).then((resp) => {
                     // Do some data modification to simplify the model
                     let deal = resp.data;
                     deal.fixedLeg.fixedRate.value = (deal.fixedLeg.fixedRate.ratioUnit.value * 100).toString().slice(0, 6);
@@ -87,7 +87,7 @@ define(['angular', 'lodash', 'viewmodel/Deal'], (angular, _, dealViewModel) => {
             }
 
             this.createDeal = (deal) => {
-                return load('create-deal', $http.post('http://localhost:31338/api/irs/deals', deal.toJson()))
+                return load('create-deal', $http.post('/api/irs/deals', deal.toJson()))
                 .then((resp) => {
                     return deal.tradeId;
                 }, (resp) => {