FIX: IP lookup was broken with relaxed user routes

This commit is contained in:
Robin Ward 2015-09-08 12:16:49 -04:00
parent f887637935
commit c0136eb6e6
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export default Ember.Component.extend({
this.set("show", true);
if (!this.get("location")) {
Discourse.ajax("/admin/users/ip-info.json", {
Discourse.ajax("/admin/users/ip-info", {
data: { ip: this.get("ip") }
}).then(function (location) {
self.set("location", Em.Object.create(location));
@ -38,7 +38,7 @@ export default Ember.Component.extend({
"order": "trust_level DESC"
};
Discourse.ajax("/admin/users/total-others-with-same-ip.json", { data: data }).then(function (result) {
Discourse.ajax("/admin/users/total-others-with-same-ip", { data }).then(function (result) {
self.set("totalOthersWithSameIP", result.total);
});