cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Thu, 25 Feb 2016 10:20:01 +0100
changeset 130 fac22d8c2df8
parent 98 2e6bfce6f99c
child 136 5fed7e1716c2
permissions -rw-r--r--
add subjects to model + simple display on bo + add command to downloads documents to fixtures for test

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;