Skip to content

Commit

Permalink
Remove use of proxy on client side
Browse files Browse the repository at this point in the history
  • Loading branch information
zmbc authored and goldpbear committed Oct 13, 2017
1 parent 2b9ef8b commit fa20320
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/base/static/js/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,13 @@ Shareabouts.Util = Util;
return layer.type && layer.type === "place";
});
_.each(configArrays.places, function(config) {
var collection = new PlaceCollection([], {
url: "/dataset/" + config.id + "/places",
});
var collection = new PlaceCollection([], { url: config.url + "/places" });
self.places[config.id] = collection;
});

// instantiate action collections for shareabouts places
_.each(configArrays.places, function(config) {
var collection = new ActionCollection([], {
url: "/dataset/" + config.id + "/actions",
});
var collection = new ActionCollection([], { url: config.url + "/actions" });
self.activities[config.id] = collection;
});

Expand Down
3 changes: 3 additions & 0 deletions src/flavors/duwamish_flavor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ map:
- "http://a.tiles.mapbox.com/v4/smartercleanup.1dd7pie7/features.json?access_token=pk.eyJ1Ijoic21hcnRlcmNsZWFudXAiLCJhIjoiTnFhUWc2cyJ9.CqPJH-9yspIMudowQJx2Uw"

- id: duwamish
url: https://dev-api.heyduwamish.org/api/v2/smartercleanup/datasets/duwamish
type: place
slug: report

Expand All @@ -103,6 +104,7 @@ map:
slug: restoration

- id: trees
url: https://dev-api.heyduwamish.org/api/v2/smartercleanup/datasets/trees
type: place
slug: trees

Expand All @@ -111,6 +113,7 @@ map:
slug: featured

- id: air
url: https://dev-api.heyduwamish.org/api/v2/smartercleanup/datasets/air
type: place
slug: air

Expand Down

0 comments on commit fa20320

Please sign in to comment.