cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Wed, 10 Feb 2016 01:08:42 +0100
changeset 119 b495d8c1bf4f
parent 98 2e6bfce6f99c
child 136 5fed7e1716c2
permissions -rw-r--r--
upgrade packages version, correct dependencies

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

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

Router.map(function() {
  this.route('tabs/detail', { path: '/detail/:document_id' });
  this.route('tabs/langues', { path: '/langues' });
  this.route('tabs/carto', { path: '/cartographie' });
  this.route('tabs/thematiques', { path: '/thematiques' });
  this.route('tabs/discours', { path: '/discours' });
  this.route('tabs/chrono', { path: '/chronologie' });
});

Router.reopen({
  onUrlChange: function() {
  }.observes('currentPath')
});

export default Router;