Skip to content

Commit

Permalink
using the production server endpoint in the app
Browse files Browse the repository at this point in the history
  • Loading branch information
jdan committed Feb 4, 2014
1 parent a29ad88 commit eae6142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/main.js
Expand Up @@ -19,7 +19,7 @@ function showLocalTours() {
var qs = 'lat=' + latitude + '&lon=' + longitude;

var request = new XMLHttpRequest();
request.open('GET', 'http://localhost:9393/api/tours.json?' + qs, true);
request.open('GET', 'http://54.226.14.244/api/tours.json?' + qs, true);
request.onreadystatechange = function() {
if (request.readyState == 4 && (request.status == 200 || request.status == 0)) {
var data = JSON.parse(request.responseText);
Expand All @@ -32,7 +32,7 @@ function showLocalTours() {

function getTour(id, callback) {
var request = new XMLHttpRequest();
request.open('GET', 'http://localhost:9393/api/tours/' + id + '.json', true);
request.open('GET', 'http://54.226.14.244/api/tours/' + id + '.json', true);
request.onreadystatechange = function() {
if (request.readyState == 4 && (request.status == 200 || request.status == 0)) {
var data = JSON.parse(request.responseText);
Expand Down

0 comments on commit eae6142

Please sign in to comment.