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

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

Router.map(function() {
  this.route('lists', function() {
    this.route('show', {path: 'list/:id'});
  });

  this.route('top50');

  this.route('movies', {path: '/'}, function() {
    this.route('show', {path: '/movie/: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('lists', function() {
    this.route('show', {path: ':id'});
  });

  this.route('top50');

  this.route('movies', {path: '/'}, function() {
    this.route('show', {path: '/movie/:id'});
  });
});

export default Router;

Fix up route for single list
Fix up route for single list
