cms/app-client/app/router.js
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 23 Jun 2016 11:35:26 +0200
changeset 199 b7c691c6179d
parent 136 5fed7e1716c2
child 219 3578846b66f4
permissions -rw-r--r--
Set location filter label Fix query parameters when navigating through tabs

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

const 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' });
});

export default Router;