swap train times to get from traintimes site
This commit is contained in:
parent
c8751bb76f
commit
0ab33e448b
@ -13,8 +13,8 @@ const TrainModel = Backbone.Model.extend({
|
|||||||
'initialize': function () {
|
'initialize': function () {
|
||||||
const fromStation = this.get('from');
|
const fromStation = this.get('from');
|
||||||
const toStation = this.get('to');
|
const toStation = this.get('to');
|
||||||
const url = `https://traintimes.silvrgit.co.uk/getnexttraintimes?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.silvrgit.co.uk/gettrains?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');
|
const target = this.get('from') + this.get('to');
|
||||||
this.set('url', url);
|
this.set('url', url);
|
||||||
this.set('routeUrl', routeUrl);
|
this.set('routeUrl', routeUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user