cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Fri, 08 Apr 2016 19:30:17 +0200
changeset 149 3ace15523e6b
parent 136 5fed7e1716c2
child 199 b7c691c6179d
permissions -rw-r--r--
ember css in pods still does not work for us (funnel error in emble cli)

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

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

export default Router;