swap train times to get from traintimes site
This commit is contained in:
parent
0dae560b93
commit
c8751bb76f
@ -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 = `/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`;
|
const url = `https://traintimes.silvrgit.co.uk/getnexttraintimes?from=${ this.get('from') }&to=${ this.get('to')}`;
|
||||||
const routeUrl = `/gettrains?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 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