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

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

Router.map(function() {
  this.route('movies', function() {
    this.route('search');
    this.route('view');
  });
});

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

export default Router;

Add dynamic segment for movie.view route
Add dynamic segment for movie.view route
