[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Switch to new Onionoo URLs.



commit a8a17f6ca5ac0221a210caf140d7608b134649ce
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Jun 15 09:06:04 2012 +0200

    Switch to new Onionoo URLs.
---
 js/collections/results.js |    2 +-
 js/models/graph.js        |    2 +-
 js/models/relay.js        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/collections/results.js b/js/collections/results.js
index c18a070..a588272 100644
--- a/js/collections/results.js
+++ b/js/collections/results.js
@@ -7,7 +7,7 @@ define([
 ], function($, _, Backbone, relayModel){
 	var resultsCollection = Backbone.Collection.extend({
 		model: relayModel,
-		baseurl: 'https://onionoo.torproject.org/summary/search/',
+		baseurl: 'https://onionoo.torproject.org/summary?search=',
 		url: '',
 		lookup: function(options) {
             var success = options.success;
diff --git a/js/models/graph.js b/js/models/graph.js
index ee86348..a121722 100644
--- a/js/models/graph.js
+++ b/js/models/graph.js
@@ -30,7 +30,7 @@ define([
                 years: {write: [], read: []}
             });
 
-            $.getJSON(this.baseurl+'/bandwidth/lookup/'+fingerprint, function(data) {
+            $.getJSON(this.baseurl+'/bandwidth?lookup='+fingerprint, function(data) {
                 model.data = data;
                 success(model, data);
             });
diff --git a/js/models/relay.js b/js/models/relay.js
index 8e9583d..e1393d4 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -131,7 +131,7 @@ define([
             var error = options.error;
             var model = this;
             console.log("doing query..");
-            $.getJSON(this.baseurl+'/details/lookup/'+this.fingerprint, function(data) {
+            $.getJSON(this.baseurl+'/details?lookup='+this.fingerprint, function(data) {
                 var relay = data.relays[0];
                 //console.log(data);
                 var bw = relay.advertised_bandwidth;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits