all files / tests/dummy/app/ router.js

100% Statements 7/7
100% Branches 0/0
100% Functions 2/2
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                           
import Ember from 'ember';
import config from './config/environment';
 
const Router = Ember.Router.extend({
  location: config.locationType,
  rootURL: config.rootURL
});
 
Router.map(function() {
  this.route('sitemap-txt', { path: 'sitemap.txt' }); // Required by ember-cli-prerender
  this.route('sitemap-xml', { path: 'sitemap.xml' }); // Optional
 
  this.route('user', { path: '/user/:user_id' }, function() {
    this.route('photos');
    this.route('photo', { path: '/photos/:photo_id' });
  });
});
 
export default Router;