From 0dae560b93c3c810cfd291c19dcd6e5ae9ba5877 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 14 Jan 2018 11:24:03 +0000 Subject: [PATCH] swap train times to get from traintimes site --- app/js/modules/train.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/modules/train.js b/app/js/modules/train.js index 510698e..6ae35ea 100644 --- a/app/js/modules/train.js +++ b/app/js/modules/train.js @@ -10,8 +10,8 @@ const TrainModel = Backbone.Model.extend({ 'initialize': function () { const fromStation = this.get('from'); const toStation = this.get('to'); - const url = `/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`; - const routeUrl = `/gettrains?from=${ this.get('from') }&to=${ this.get('to')}`; + const url = `https://traintimes.silvrtree.co.uk/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`; + const routeUrl = `https://traintimes.silvrtree.co.uk/gettrains?from=${ this.get('from') }&to=${ this.get('to')}`; const target = this.get('from') + this.get('to'); this.set('url', url); this.set('routeUrl', routeUrl);