/** Simple routes table to export path information from Rails */

modulejs.define( "routes", [],
function() {
  return {
    explore: "<%= Rails.application.routes.url_helpers.explore_path %>",
    new_exploration: "<%= Rails.application.routes.url_helpers.new_exploration_path %>"
  }
} );

/** Simple routes table to export path information from Rails */

modulejs.define( "routes", [],
function() {
  return {
    explore: "<%= Rails.application.config.relative_url_root%><%= Rails.application.routes.url_helpers.explore_path %>",
    new_exploration: "<%= Rails.application.config.relative_url_root%><%= Rails.application.routes.url_helpers.new_exploration_path %>"
  }
} );

Use relative_url_root in JsRoutes, if set
Use relative_url_root in JsRoutes, if set
