diff --git a/src/base/static/js/routes.js b/src/base/static/js/routes.js index fdbd5f472e..df7dbcb94e 100644 --- a/src/base/static/js/routes.js +++ b/src/base/static/js/routes.js @@ -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; }); diff --git a/src/flavors/duwamish_flavor/config.yml b/src/flavors/duwamish_flavor/config.yml index 672beace95..0d7c526dfe 100644 --- a/src/flavors/duwamish_flavor/config.yml +++ b/src/flavors/duwamish_flavor/config.yml @@ -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 @@ -103,6 +104,7 @@ map: slug: restoration - id: trees + url: https://dev-api.heyduwamish.org/api/v2/smartercleanup/datasets/trees type: place slug: trees @@ -111,6 +113,7 @@ map: slug: featured - id: air + url: https://dev-api.heyduwamish.org/api/v2/smartercleanup/datasets/air type: place slug: air