import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('stops', { path: "/" }, function() {
    this.route('near-by', { path: '/' });
    this.route('search');
    this.route('favorites');
  });
  this.route('routes');
  this.route('showRoute', { path: '/route/:route_id' });
  this.route('arrivals', { path: '/:stop_id' });
});

export default Router;

import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('stops', { path: "/" }, function() {
    this.route('near-by', { path: '/' });
    this.route('search');
    this.route('favorites');
  });
  this.route('routes');
  this.route('showRoute', { path: '/route/:route_id' });
  this.route('arrivals', { path: '/:stop_id' });

  // STATIC PAGES
  this.route('mocks', function() {
    this.route('home');
    this.route('results', function() {
      this.route('stops');
      this.route('routes');
    });
    this.route('detail', function() {
      this.route('stops');
      this.route('routes');
    });
  });
});

export default Router;

Add routes for static mock pages
Add routes for static mock pages
