cms/app-client/app/router.js
author nowmad@23.1.168.192.in-addr.arpa
Fri, 22 Jan 2016 13:15:47 +0100
changeset 98 2e6bfce6f99c
parent 94 62984937a062
child 136 5fed7e1716c2
permissions -rw-r--r--
add details tab for perma-link to documents

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;